atularen / ngx-monaco-editor

Monaco Editor component for Angular 2 and Above
https://www.npmjs.com/package/ngx-monaco-editor
MIT License
428 stars 155 forks source link

onInit not fired as described in the readme #160

Open fifland opened 4 years ago

fifland commented 4 years ago

Hi, thanks for your great project! Im just having a little issue. I've tried to access the editors instance by using the onInit Event as described in the readme. However that event is not fired.

image

LironHazan commented 4 years ago

Same here, I'm using Angular9 and I saw the emitter in the source code so it's strange..

LironHazan commented 4 years ago

The event is actually being fired, I can access the editor from the callback, BUT maybe the issue is in the way the lib is built/expose the API, However the template warn won't cause the build to fail!