Skip to content

Commit 2640562

Browse files
committed
feat(clientApp): ajust code to use stand alone component
1 parent f5936ec commit 2640562

File tree

2 files changed

+14
-22
lines changed

2 files changed

+14
-22
lines changed

src/Web/ClientApp/src/app/app.server.module.ts

-10
This file was deleted.

src/Web/ClientApp/src/main.ts

+14-12
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,19 @@ if (environment.production) {
2929
}
3030

3131
bootstrapApplication(AppComponent, {
32-
providers: [
33-
importProvidersFrom(BrowserModule.withServerTransition({ appId: 'ng-cli-universal' }), FormsModule, ModalModule.forRoot()),
34-
{ provide: HTTP_INTERCEPTORS, useClass: AuthorizeInterceptor, multi: true },
35-
provideHttpClient(withInterceptorsFromDi()),
36-
provideRouter([
37-
{ path: '', component: HomeComponent, pathMatch: 'full' },
38-
{ path: 'counter', component: CounterComponent },
39-
{ path: 'fetch-data', component: FetchDataComponent },
40-
{ path: 'todo', component: TodoComponent }
41-
]),
42-
provideAnimations()
43-
]
32+
providers: [
33+
providers,
34+
importProvidersFrom(BrowserModule.withServerTransition({ appId: 'ng-cli-universal' }), FormsModule, ModalModule.forRoot()),
35+
{ provide: HTTP_INTERCEPTORS, useClass: AuthorizeInterceptor, multi: true },
36+
provideHttpClient(withInterceptorsFromDi()),
37+
provideRouter([
38+
{ path: '', component: HomeComponent, pathMatch: 'full' },
39+
{ path: 'counter', component: CounterComponent },
40+
{ path: 'fetch-data', component: FetchDataComponent },
41+
{ path: 'todo', component: TodoComponent }
42+
]),
43+
provideAnimations(),
44+
45+
]
4446
})
4547
.catch(err => console.log(err));

0 commit comments

Comments
 (0)