Here's how you can do this:

  1. Instantiate the Angular EventEmitter in the app.component
  2. Pass it to the Skylink Wrapper constructor and keep it in a member attribute of the class.
  3. 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.



Other articles you may be interested in: Support for Angular 5| How can I set audio/ video bandwidth in the Angular 5 sample?