CodeEditorModule is marked as deprecated even though CodeEditorModule is still needed for the code editor to work.
I believe the intention was to deprecate the forRoot() method instead:
CodeEditorModule.forRoot({
typingsWorkerUrl: 'assets/workers/typings-worker.js',
baseUrl: 'assets/monaco'
})
so it can be replaced with
provideCodeEditor({
typingsWorkerUrl: 'assets/workers/typings-worker.js',
baseUrl: 'assets/monaco'
})
while simultaneously maintaining the import of CodeEditorModule without the forRoot() method.
CodeEditorModuleis marked as deprecated even thoughCodeEditorModuleis still needed for the code editor to work.I believe the intention was to deprecate the
forRoot()method instead:so it can be replaced with
while simultaneously maintaining the import of
CodeEditorModulewithout theforRoot()method.