atularen/ngx-monaco-editor

How to format or Beautify Javascript code on button click event ?

Co-Maheshh opened this issue · 1 comments

i have added this editor and its working perfect. its worked shortcut keys CLT + K + F for beautify javascript code. but i want to beautify when i clicked on button that time only so how to do that. i have button like this .

<button (click)="beautify()">Beautify