Closed sanjay51 closed 4 years ago
Hi @sanjay51,
our library components uses OnPush change detection strategy, so you have to provide a new reference of the options object to change the language.
You will find an example on this issue: https://github.com/materiahq/ngx-monaco-editor/issues/23.
Perfect, thanks a lot @GeoAstronaute .
nice!
Hi,
I've an editor like this -
I want to change the language of the monaco editor dynamically. Things I've tried -
app.component.ts:
app.component.ts:
Could you please help me changing the language dynamically? Thank you.