Skip to content

Commit 347c260

Browse files
pranjal-goswamibrandyscarney
authored andcommitted
docs(events): fix syntax error (#12317)
Need to access member using `this` keyword outside constructor
1 parent 9ffc52b commit 347c260

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/events.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { ScrollView } from './scroll-view';
1616
* constructor(public events: Events) {}
1717
* createUser(user) {
1818
* console.log('User created!')
19-
* events.publish('user:created', user, Date.now());
19+
* this.events.publish('user:created', user, Date.now());
2020
* }
2121
*
2222
*

0 commit comments

Comments
 (0)