Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form name="myForm">
- <input name="myText" type="text" ng-model="mytext" required />
- <button ng-disabled="myForm.$invalid">Save</button>
- </form>
- <button ng-disabled="myForm.$invalid">Submit Me</button>
- <body>
- <div class="slide-animate" ng-include="'form.html'"></div>
- <div class="slide-animate" ng-include="'button.html'"></div>
- </body>
- function myCtrl($scope) {
- $scope.submit = function () {
- alert('Submit button enabled');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement