Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. The NgForm directive creates a top-level FormGroup instance
  2.  
  3. The template variable myForm has access to the form value, so we can use the handle function to manage submitting values like this:
  4.  
  5. <form #myForm="ngForm" (ngSubmit)="handle(myForm.value)">
  6. ...
  7. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement