Guest User

Untitled

a guest
May 20th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. <form name="completeForm">
  2. <subform1></subform1>
  3. <subform2></subform2>
  4. ...
  5. <subform10></subform10>
  6. <div>
  7. <button ng-click="continue(fnolForm, $event)></button>
  8. </div>
  9. </form>
  10.  
  11. private continueBtn : any;
  12. private continueFunction : any;
  13.  
  14. this.continueBtn = document.querySelector('.continue');
  15. this.continueBtn.addEventListener('click', this.continueFunction);
  16. this.continueFunction = (e: Event) => {
  17. ...//custom validations first
  18. if(custom validations)
  19. {
  20. this.$scope.completeForm.$valid = true;
  21. this.continueBtn.click();// move to parent form continue click function
  22. }
  23. }
Add Comment
Please, Sign In to add comment