title: assign unique id to radio button on selection
body: <p>I am trying to assign unique id to radio button on select. I am not sure this is right way. I tried like this:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html ng-app="radioExample"&gt;
  
    &lt;head&gt;
      &lt;script data-require="angular.js@1.5.6" data-semver="1.5.6" src="https://code.angularjs.org/1.5.6/angular.min.js"&gt;&lt;/script&gt;
      &lt;link href="style.css" rel="stylesheet" /&gt;
      &lt;script src="script.js"&gt;&lt;/script&gt;
    &lt;/head&gt;
  
    &lt;body&gt;
      &lt;script&gt;
      angular.module('radioExample', [])
      .controller('ExampleController', ['$scope', function($scope) {
  
        $scope.startDate = {
          id: new Date()
        };
        $scope.specialValue = {
          "value": new Date().getMilliseconds()
        };
  
        $scope.uniqueId = new Date().getMilliseconds();
  
      }]);
      &lt;/script&gt;
      &lt;form ng-controller="ExampleController" name="myForm"&gt;
        &lt;label&gt;
          &lt;input type="radio" name="rdboption" ng-value="specialValue" ng-model="startDate.id" id="{{::uniqueId}}"  /&gt;
  
      Jan
    &lt;/label&gt;
        &lt;br /&gt;
        &lt;label&gt;
          &lt;input type="radio" name="rdboption" ng-value="specialValue" ng-model="startDate.id" id="{{::uniqueId}}" /&gt;
  
      Feb
    &lt;/label&gt;
        &lt;br /&gt;
        &lt;label&gt;
          &lt;input type="radio" name="rdboption" ng-value="specialValue" ng-model="startDate.id" id="{{::uniqueId}}" /&gt;
  
      Mar
    &lt;/label&gt;
        &lt;br /&gt;
        &lt;tt&gt;ID = {{uniqueId | json}}&lt;/tt&gt;
        &lt;br /&gt;
      &lt;/form&gt;
  
   Note that `ng-value="specialValue"` sets radio item's value to be the value of `$scope.specialValue`.
  
  
    &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>This prints the same value for all the radio buttons even after adding timestamp in milliseconds</p>