Hi Noah,

You are better off by creating a component for this. The reason your code 
does not work: It does get added to the DOM quite right, however, angular 
is not automatically compiling new additions. This means you have to use 
$compile if you really want something like this to work.

However, why would you do something like this by string manipulation and a 
lot of extra code, when you also can do it simply in the template? 
something like this will work:
    <div ng-repeat="option in $ctrl.options">
      <input type="radio" ng-model='$ctrl.result' ng-value="option" 
ng-change="$ctrl.actOnChange($ctrl.result)">
      {{option}}
    </div>

see it working in this plunk 
<http://plnkr.co/edit/3rIhi3vCM766w9Rxan0F?p=preview>

Regards
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"Angular" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to