Skip to content

Instantly share code, notes, and snippets.

@wullemsb
Created September 30, 2023 09:59
import { HttpClientModule } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { ApiModule } from './shared/api/api.module';
@NgModule({
declarations: [
AppComponent
],
providers: [],
bootstrap: [AppComponent],
imports: [
ApiModule.forRoot({ rootUrl: '/exampleapi' }),
HttpClientModule,
AppRoutingModule,
BrowserModule,
]
})
export class AppModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment