angular-training-slides
angular-training-slides copied to clipboard
Check that learner understands all ways to handle data output by a component
- Direct assignment
(event)="data = $event"
-
(event)
syntax evaluates an expression on every event emission, what is done with$event
is up to the developer
Q: What is the expected results of this output expression? <counter (onCount)="count = $event">
A: Parent count
member will be assigned the emitted value from the child's onCount
output event.
10 min