ng2-monaco-editor
ng2-monaco-editor copied to clipboard
Dispose Worker
I have found that typescriptWorker is not disposed when component is disposed. Have you give a try for example:
<button (click)="showEditor=!showEditor">Change</button>
<div *ngIf="showEditor">
<monaco-editor [(ngModel)]="code" [language]="language" ></monaco-editor>
</div>
i have also open a issue on : https://github.com/Microsoft/monaco-editor/issues/318 Thanks! Diego