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 * @usage
* ```ts * ```ts
* import {Events} from 'ionic-angular';
*
* constructor(public events: Event) {}
*
* // first page (publish an event when a user is created) * // first page (publish an event when a user is created)
* function createUser(user) { * function createUser(user) {
* console.log('User created!') * console.log('User created!')