alauda / ng-monaco-editor

Angular wrapper for monaco-editor.
https://ng-monaco-editor.netlify.app
MIT License
29 stars 5 forks source link

How to change the theme dynamically? #84

Closed gabrielv27 closed 1 year ago

gabrielv27 commented 1 year ago

Hi,

Is there any example on how I can change the theme or any other editor option dynamically from my Angular component?

Thanks!

JounQin commented 1 year ago
<ng-monaco-editor [options]="options"></ng-monaco-editor>

All you need to do is just changing options dynamically.