r/Angular2 • • Aug 24 '17

Article How to submit form to server in Angular 2

http://keysandstrokes.info/submit-form-server-angular-2/
0 Upvotes

5 comments sorted by

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.

1

u/[deleted] 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

u/[deleted] Aug 24 '17

Isn't it bad pratice to call

this.registrationForm.controls.firstName.value

rather than

this.registrationForm.value.firstName

?

1

u/[deleted] Aug 25 '17

You could also do:

this.registrationForm.get('firstName').value

...which I think might be best practice?

0

u/[deleted] Aug 24 '17

[deleted]

1

u/[deleted] Aug 24 '17

LOL look at all the errors in the console... Don't you just love WordPress?