Update events.ts

Improve documentation with the import and constructor initialization.
This commit is contained in:
Michael Mafort
2016-04-06 11:36:39 -03:00
parent 8b990889e0
commit ddfce16ebd

View File

@ -6,6 +6,10 @@
*
* @usage
* ```ts
* import {Events} from 'ionic-angular';
*
* constructor(public events: Event) {}
*
* // first page (publish an event when a user is created)
* function createUser(user) {
* console.log('User created!')