EventEmitter

Stable

Class

Class Overview

class EventEmitter extends Subject {
constructor(isAsync?: boolean)

emit(value?: T)
subscribe(generatorOrNext?: any, error?: any, complete?: any) : any

}

Class Description

Constructor

constructor(isAsync?: boolean)

Creates an instance of [EventEmitter], which depending on [isAsync], delivers events synchronously or asynchronously.

Class Details

exported from @angular/core/index, defined in @angular/core/src/facade/async.ts