Philip Da Silva
Philip Da Silva
- 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...
- Angular DOM event bindings use native DOM event names without the `on` prefix. - i.e. `onclick` == `(click)` Q: What would the Angular binding for `onmouseenter` be? A: `(mouseenter)`...
- 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...
- Variable in square brackets is the child's - Variables in the quotations is the parent's
1. Square brackets evaluate an expression 2. No brackets is a string literal