Answer the question
In order to leave comments, you need to log in
Why does change detection work?
The documentation says:
change detection process that runs after every DOM event: every keystroke, mouse move, timer tick, and server response.
(keyup.enter)="addHero(box.value); box.value=''"
(keyup.enter)="addHero(box.value)"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question