Multiple Editor issue
akashjava opened this issue · comments
AKASH commented
.core.mjs:7473 ERROR Error: ModelService: Cannot add model because it already exists!
I am using
Angular 17.2.1
"@ngstack/code-editor": "^7.2.0",
"monaco-editor": "^0.46.0",
Applied like
<ngs-code-editor
[theme]="theme"
[codeModel]="model"
[options]="options"
(valueChanged)="onCodeChanged($event)">
<ngs-code-editor
[theme]="theme"
[codeModel]="model1"
[options]="options"
(valueChanged)="onCodeChanged($event)">