File tree Expand file tree Collapse file tree 3 files changed +20
-25
lines changed Expand file tree Collapse file tree 3 files changed +20
-25
lines changed Original file line number Diff line number Diff line change 11import { Component } from '@angular/core' ;
2+ import { HeaderComponent } from '../components/header/header.component' ;
3+ import { RouterOutlet } from '@angular/router' ;
24
35@Component ( {
46 selector : 'app-root' ,
@@ -17,6 +19,6 @@ import { Component } from '@angular/core';
1719 }
1820 ` ,
1921 ] ,
20- standalone : false
22+ imports : [ HeaderComponent , RouterOutlet ]
2123} )
2224export class AppComponent { }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11import { platformBrowserDynamic } from '@angular/platform-browser-dynamic' ;
22
3- import { AppModule } from './app/app.module' ;
3+ import { BrowserModule , bootstrapApplication } from '@angular/platform-browser' ;
4+ import {
5+ withInterceptorsFromDi ,
6+ provideHttpClient ,
7+ } from '@angular/common/http' ;
8+ import { provideRouter } from '@angular/router' ;
9+ import { appRoutes } from './app/app.routes' ;
10+ import { HeaderModule } from './components/header/header.component' ;
11+ import { AppComponent } from './app/app.component' ;
12+ import { importProvidersFrom } from '@angular/core' ;
413
5- platformBrowserDynamic ( )
6- . bootstrapModule ( AppModule )
7- . catch ( ( err ) => console . error ( err ) ) ;
14+ bootstrapApplication ( AppComponent , {
15+ providers : [
16+ importProvidersFrom ( BrowserModule , HeaderModule ) ,
17+ provideHttpClient ( withInterceptorsFromDi ( ) ) ,
18+ provideRouter ( appRoutes ) ,
19+ ] ,
20+ } ) . catch ( ( err ) => console . error ( err ) ) ;
You can’t perform that action at this time.
0 commit comments