Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div some-dir>
- <form name="myForm">
- <!-- Form stuff here -->
- <button ng-click="submit();">
- </form>
- </div>
- scope.submit = function() {
- console.log(scope.myForm);
- }
- <form name="myForms.firstForm">
- <!-- Form stuff here -->
- <button ng-click="submit();">
- </form>
- scope.myForms = {};
- scope.submit = function() {
- console.log(scope.myForms.firstForm);
- }
- <form name="myForm" ng-controller="SomeController">
- <form name="myForm" ng-controller="SomeController">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement