22 lines
586 B
TypeScript
22 lines
586 B
TypeScript
|
import {
|
||
|
APP_BASE_HREF,
|
||
|
LocationStrategy,
|
||
|
HashLocationStrategy,
|
||
|
} from '@angular/common';
|
||
|
import { NgModule } from '@angular/core';
|
||
|
import { BrowserModule } from '@angular/platform-browser';
|
||
|
|
||
|
import { AppRoutingModule } from './app-routing.module';
|
||
|
import { AppComponent } from './app.component';
|
||
|
|
||
|
@NgModule({
|
||
|
declarations: [AppComponent],
|
||
|
imports: [BrowserModule, AppRoutingModule],
|
||
|
providers: [
|
||
|
{ provide: APP_BASE_HREF, useValue: '/' },
|
||
|
{ provide: LocationStrategy, useClass: HashLocationStrategy },
|
||
|
],
|
||
|
bootstrap: [AppComponent],
|
||
|
})
|
||
|
export class AppModule {}
|