Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. <form name="myForm" ng-submit="submitForm()" ng-controller="ExampleController">
  2. <input type="radio" ng-model="color" value="red" ng-required="!color"> Red <br/>
  3. <input type="radio" ng-model="color" value="green" ng-required="!color"> Green <br/>
  4. <input type="radio" ng-model="color" value="blue" ng-required="!color"> Blue <br/>
  5. <tt>color = {{color | json}}</tt><br/>
  6. <button
  7. data-ng-disabled="myForm.$invalid"
  8. type="submit">Submit</button>
  9. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement