Is it possible to listen to an event triggered in AngularJS using regular JS (outside of Angular)? I have a scenario where an event is being emitted using RxJS in Angular 2. Can I observe that event from pure JS?
Here's some example pseudo code:
import {Observable} from 'rxjs/Rx';
...
@Output() responsesEvt = new EventEmitter();
...
this.responsesEvt.emit(this.form.value);
I am looking for a way to subscribe to `responsesEvt` when it's triggered outside the context of Angular 2.