docs: update rxjs refs (#31780)

PR Close #31780
This commit is contained in:
Judy Bogart
2019-07-22 09:03:38 -07:00
committed by Alex Rickabaugh
parent f8c27d42ed
commit 2913340af7
3 changed files with 14 additions and 7 deletions

View File

@ -11,12 +11,16 @@
import {Subject, Subscription} from 'rxjs';
/**
* Use in directives and components to emit custom events synchronously
* or asynchronously, and register handlers for those events by subscribing
* to an instance.
* Use in components with the `@Output` directive to emit custom events
* synchronously or asynchronously, and register handlers for those events
* by subscribing to an instance.
*
* @usageNotes
*
* Extends
* [RxJS `Subject`](https://rxjs.dev/api/index/class/Subject)
* for Angular by adding the `emit()` method.
*
* In the following example, a component defines two output properties
* that create event emitters. When the title is clicked, the emitter
* emits an open or close event to toggle the current visibility state.
@ -54,6 +58,7 @@ import {Subject, Subscription} from 'rxjs';
* <zippy (open)="onOpen($event)" (close)="onClose($event)"></zippy>
* ```
*
* @see [Observables: Event emitter](guide/observables-in-angular#event-emitter)
* @publicApi
*/
export class EventEmitter<T extends any> extends Subject<T> {