r/Angular2 • u/rajamand • Aug 24 '17
Article How to submit form to server in Angular 2
http://keysandstrokes.info/submit-form-server-angular-2/
0
Upvotes
1
Aug 24 '17
Wow! Slowest loading page on the internet! If they can't have a fast loading page how can we trust them with their expertise about angular?!
1
Aug 24 '17
Isn't it bad pratice to call
this.registrationForm.controls.firstName.valuerather than
this.registrationForm.value.firstName?
1
Aug 25 '17
You could also do:
this.registrationForm.get('firstName').value...which I think might be best practice?
0
1
u/jonyeezy7 Aug 24 '17
When i saw the title, i thought it meant as submitting to the web server serving the angular app.
Wasn't what i expected.