export class EventEmitter
export class EventEmitter
exported from angular2/core defined in angular2/src/facade/async.ts (line 68)
Use by directives and components to emit custom Events.
Examples
In the following example, Zippy
alternatively emits open
and close
events when its
title gets clicked:
Use Rx.Observable but provides an adapter to make it work as specified here: https://github.com/jhusain/observable-spec
Once a reference implementation of the spec is available, switch to it.
Constructor
constructor(isAsync?: boolean)
constructor(isAsync?: boolean)
Creates an instance of [EventEmitter], which depending on [isAsync], delivers events synchronously or asynchronously.
Members
emit(value: T)
emit(value: T)
Not Yet Documented
next(value: any)
next(value: any)
Not Yet Documented
subscribe(generatorOrNext?: any, error?: any, complete?: any) : any
subscribe(generatorOrNext?: any, error?: any, complete?: any) : any
Not Yet Documented