You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix($event): Fix the $event local within the '(event)' expression to properly match Angular 2.
The $event local should now properly reflect either:
- The DOM event object for normal events such as (click), (keyup), etc
- The Output payload for @Output-based events
fixes#88
BREAKING CHANGE:
Before:
Previously the `$event.detail` property was needed to access the @output's payload.
After:
Now you access the payload directly with just `$event`.
Copy file name to clipboardexpand all lines: API.md
+6-1
Original file line number
Diff line number
Diff line change
@@ -251,7 +251,7 @@ Every input can be bound in three different ways, just like Angular 2:
251
251
252
252
###### Output Usage
253
253
254
-
Every output can be listened for using the `(event)="handler()"` syntax.
254
+
Every output can be listened for using the `(event)="handler()"` syntax. The `$event` var can be used your expression like this, `(event)="handler($event)"`, and will either be a reference to your output's payload for custom outputs, or a reference to the DOM event object for standard DOM events.
255
255
256
256
**Important:** We do **not** support the optional `on-event` syntax.
Life cycle hooks are methods added to a Component or Directive. If the hook is present then it will be fired at the designated time. Read about each hook and when and why you would use it.
0 commit comments