Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
34
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">
  2. <input name="myText" type="text" ng-model="mytext" required />
  3. <button ng-disabled="myForm.$invalid">Save</button>
  4. </form>
  5.  
  6. <button ng-disabled="myForm.$invalid">Submit Me</button>
  7.  
  8. <body>
  9. <div class="slide-animate" ng-include="'form.html'"></div>
  10. <div class="slide-animate" ng-include="'button.html'"></div>
  11. </body>
  12.  
  13. function myCtrl($scope) {
  14. $scope.submit = function () {
  15. alert('Submit button enabled');
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement