Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- The NgForm directive creates a top-level FormGroup instance
- The template variable myForm has access to the form value, so we can use the handle function to manage submitting values like this:
- <form #myForm="ngForm" (ngSubmit)="handle(myForm.value)">
- ...
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement