<form ng-controller="ExampleController">
    <h2>Which is your favorite?</h2>
      <label ng-repeat="name in names" for="{{name}}">
        {{name}}
        <input type="radio"
               ng-model="my.favorite"
               ng-value="name"
               id="{{name}}"
               name="favorite">
      </label>
    <div>You chose {{my.favorite}}</div>
  </form>
</body>
</html>