angular-training-slides icon indicating copy to clipboard operation
angular-training-slides copied to clipboard

Check that learner understands all ways to handle data output by a component

Open rpdasilva opened this issue 7 years ago • 0 comments

  • 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

rpdasilva avatar Mar 27 '17 20:03 rpdasilva