Hi Elakkiya.
do you mean something like this?
Program:
<label><input type="radio" ng-model="form.Program" name="Program"
value="option
1" required /> option 1</label>
<label><input type="radio" ng-model="form.Program" name="Program"
value="option 2" required /> option 2</label>
<label><input type="radio" ng-model="form.Program" name="Program"
value="other" required /> other</label>
<!--put in dom if 'other'-->
<input ng-if="form.Program === 'other'" type="text"
ng-model="form.OtherProgram" name="Program_Other" ng-required/>
<!-- dummy to show if not needed -->
<input type="text" disabled ng-hide="form.Program === 'other'">
You can remove everything out of your controller, and it works similar.
If this is not what you mean, can you please clarify your needs?
Regards
Sander
--
You received this message because you are subscribed to the Google Groups
"AngularJS" 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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.