Permalink
Browse files

Use a separate method name

Using a separate method name than the @Output name so it's a little clearer when reading the code. If I don't read the Events chapter before this, it's a bit confusing to understand which is which.
  • Loading branch information...
1 parent 29c64de commit 7844d4a4ff3ffd390d60966981291b903470ddec @abhijitdixit abhijitdixit committed on GitHub Dec 6, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 outputs/index.md
View
@@ -49,7 +49,7 @@ Now when we used this component elsewhere in our app, we can bind the event that
```html
{% raw %}
- <user-profile (userUpdated)="userUpdated($event)"></user-profile>
+ <user-profile (userUpdated)="handleUserUpdated($event)"></user-profile>
{% endraw %}
```
@@ -58,7 +58,7 @@ Now when we used this component elsewhere in our app, we can bind the event that
export class SettingsPage {
constructor(){}
- userUpdated(user) {
+ handleUserUpdated(user) {
// Handle the event
}
}

0 comments on commit 7844d4a

Please sign in to comment.