30 lines
824 B
TypeScript
30 lines
824 B
TypeScript
import {NgModule} from '@angular/core';
|
|
import {BrowserModule} from '@angular/platform-browser';
|
|
|
|
import {AppRoutingModule} from './app-routing.module';
|
|
import {AppComponent} from './app.component';
|
|
import {HelloComponent} from './hello/hello.component';
|
|
import {NavbarComponent} from './navbar/navbar.component';
|
|
import {BASE_PATH} from '../gen';
|
|
import {environment} from '../environments/environment';
|
|
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
|
|
|
@NgModule({
|
|
declarations: [
|
|
AppComponent,
|
|
HelloComponent
|
|
],
|
|
imports: [
|
|
BrowserModule,
|
|
AppRoutingModule,
|
|
NavbarComponent
|
|
],
|
|
providers: [
|
|
{provide: BASE_PATH, useValue: environment.apiBasePath},
|
|
provideHttpClient(withInterceptorsFromDi())
|
|
],
|
|
bootstrap: [AppComponent]
|
|
})
|
|
export class AppModule {
|
|
}
|