mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
docs(events): fix syntax error (#12317)
Need to access member using `this` keyword outside constructor
This commit is contained in:
committed by
Brandy Carney
parent
9ffc52b582
commit
347c260950
@@ -16,7 +16,7 @@ import { ScrollView } from './scroll-view';
|
||||
* constructor(public events: Events) {}
|
||||
* createUser(user) {
|
||||
* console.log('User created!')
|
||||
* events.publish('user:created', user, Date.now());
|
||||
* this.events.publish('user:created', user, Date.now());
|
||||
* }
|
||||
*
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user