Skip to content

Commit

Permalink
feat(clientApp): ajust code to use stand alone component
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelNinyo committed Jul 1, 2024
1 parent f5936ec commit 2640562
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 22 deletions.
10 changes: 0 additions & 10 deletions src/Web/ClientApp/src/app/app.server.module.ts

This file was deleted.

26 changes: 14 additions & 12 deletions src/Web/ClientApp/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,19 @@ if (environment.production) {
}

bootstrapApplication(AppComponent, {
providers: [
importProvidersFrom(BrowserModule.withServerTransition({ appId: 'ng-cli-universal' }), FormsModule, ModalModule.forRoot()),
{ provide: HTTP_INTERCEPTORS, useClass: AuthorizeInterceptor, multi: true },
provideHttpClient(withInterceptorsFromDi()),
provideRouter([
{ path: '', component: HomeComponent, pathMatch: 'full' },
{ path: 'counter', component: CounterComponent },
{ path: 'fetch-data', component: FetchDataComponent },
{ path: 'todo', component: TodoComponent }
]),
provideAnimations()
]
providers: [
providers,
importProvidersFrom(BrowserModule.withServerTransition({ appId: 'ng-cli-universal' }), FormsModule, ModalModule.forRoot()),
{ provide: HTTP_INTERCEPTORS, useClass: AuthorizeInterceptor, multi: true },
provideHttpClient(withInterceptorsFromDi()),
provideRouter([
{ path: '', component: HomeComponent, pathMatch: 'full' },
{ path: 'counter', component: CounterComponent },
{ path: 'fetch-data', component: FetchDataComponent },
{ path: 'todo', component: TodoComponent }
]),
provideAnimations(),

]
})
.catch(err => console.log(err));

0 comments on commit 2640562

Please sign in to comment.