Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. <div some-dir>
  2.  
  3. <form name="myForm">
  4. <!-- Form stuff here -->
  5. <button ng-click="submit();">
  6. </form>
  7.  
  8. </div>
  9.  
  10. scope.submit = function() {
  11. console.log(scope.myForm);
  12. }
  13.  
  14. <form name="myForms.firstForm">
  15. <!-- Form stuff here -->
  16. <button ng-click="submit();">
  17. </form>
  18.  
  19. scope.myForms = {};
  20. scope.submit = function() {
  21. console.log(scope.myForms.firstForm);
  22. }
  23.  
  24. <form name="myForm" ng-controller="SomeController">
  25.  
  26. <form name="myForm" ng-controller="SomeController">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement