ng2-monaco-editor icon indicating copy to clipboard operation
ng2-monaco-editor copied to clipboard

Dispose Worker

Open meriturva opened this issue 8 years ago • 0 comments

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

meriturva avatar Jan 17 '17 09:01 meriturva