- monaco editor for
angularjs 1.x.x
-
import monaco loader
<script src="<monaco-dir>/monaco/min/vs/loader.js"></script>
-
angular controller scope
<div ng-controller="your-ctrl"> <div ng-model="code" ui-monaco-opts="{'language': 'javascript', 'automaticLayout': true}" ui-monaco) </div>