Skip to content

9.0.0

Latest
Compare
Choose a tag to compare
@DenysVuika DenysVuika released this 06 Nov 17:16

What's Changed

Code Editor is now a standalone component

You can use

import { provideCodeEditor } from '@ngstack/code-editor';

@NgModule({
  providers: [
    provideCodeEditor({
      editorVersion: '0.44.0'
    })
  ]
})
export class AppModule {}

or register the component providers directly in the standalone app:

export const appConfig: ApplicationConfig = {
  providers: [
    provideZoneChangeDetection({ eventCoalescing: true }),
    provideRouter(routes),
    provideAnimationsAsync(),
    
    // Configure Code Editor
    provideCodeEditor({
      // editorVersion: '0.46.0',
      // use local Monaco installation
      baseUrl: 'assets/monaco',
      // use local Typings Worker
      typingsWorkerUrl: 'assets/workers/typings-worker.js'
    })
  ]
};

Full Changelog: v.8.0.0...v.9.0.0