Here's how you can do this:
- Instantiate the Angular EventEmitter in the app.component
- Pass it to the Skylink Wrapper constructor and keep it in a member attribute of the class.
- Emit the event with the recording value:
Skylink.on('recordingState', function (state, recordingId, link, error) { this.emmiter.emit("myRecordingIdEvent", recordingId) }
4. Implement the event listener (handler) in app.component.