U
U
Umid2017-05-29 17:40:13
Angular
Umid, 2017-05-29 17:40:13

How to cancel page reload on form submit?

Good afternoon.
All code is here .
The fact is that when I click on a button with the submit type, the page reloads, despite the fact that I set the onSubmit function, which I described in the component, to the ngSubmit event (I tried it and just submit ). But it doesn't work.
Form Component:
html
Ts

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Manakov, 2017-05-29
@DarCKoder

You can change onSumbit to onSubmit
Yes, and remove the js files from the git. Why are you taking them with you? Only attention is diverted.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question