docs(events): fix syntax error (#12317)

Need to access member using `this` keyword outside constructor
This commit is contained in:
Pranjal Goswami
2017-07-13 19:55:35 +05:30
committed by Brandy Carney
parent 9ffc52b582
commit 347c260950

View File

@@ -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());
* }
*
*