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

Develop question to check that learner understands the difference between a DOM event and a custom event

Open rpdasilva opened this issue 7 years ago • 0 comments

  • DOM event i.e. (click) adds an eventListener to the component
  • DOM event's $event represents the native DOM event object
  • Custom event must be a @Output EventEmitter declared in the child component
  • Custom event's $event represents the most recently emitted EventEmitter value

10min

rpdasilva avatar Mar 27 '17 20:03 rpdasilva