Skip to content

Commit 7b25502

Browse files
committed
add base url for monaco
1 parent 3b2d83e commit 7b25502

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/app/app.module.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { BrowserModule } from '@angular/platform-browser';
22
import { NgModule } from '@angular/core';
3-
import { RouterModule } from '@angular/router';
43

54
import { AppComponent } from './app.component';
65
import { HomeComponent } from './home/home.component';
@@ -26,7 +25,9 @@ import { AppRoutingModule } from './app-routing.module';
2625
BrowserModule,
2726
FormsModule,
2827
AppRoutingModule,
29-
MonacoEditorModule.forRoot()
28+
MonacoEditorModule.forRoot({
29+
baseUrl: '/text-compare-angular/assets/monaco'
30+
})
3031
],
3132
providers: [],
3233
bootstrap: [AppComponent]

0 commit comments

Comments
 (0)