You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to update the editor's language by changing the 'language' property in the options like this:
I created a button and set up a click event handler on it:
<button (click)="setHTML()>Set language to HTML</button>
I thought this would change the language in the editor as the options should be bound two way but when I type HTML in the editor, there is no intellisense.
What am I doing wrong?
Is there another way to achieve this?
The text was updated successfully, but these errors were encountered:
I added the editor on the HTML like this:
<ngx-monaco-editor [options]="editorOptions"></ngx-monaco-editor>
Initially, the options are set to the following object in the component:
editorOptions = {theme: 'vs-dark', language: 'javascript'};
I am trying to update the editor's language by changing the 'language' property in the options like this:
I created a button and set up a click event handler on it:
<button (click)="setHTML()>Set language to HTML</button>
I thought this would change the language in the editor as the options should be bound two way but when I type HTML in the editor, there is no intellisense.
What am I doing wrong?
Is there another way to achieve this?
The text was updated successfully, but these errors were encountered: