Last active
May 29, 2018 14:25
-
-
Save Frelseren/803bb506147518b706823f985648f2c4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { BrowserModule } from '@angular/platform-browser'; | |
import { NgModule } from '@angular/core'; | |
import { UrlSerializer } from '@angular/router'; | |
import { AppComponent } from 'app/app.component'; | |
import { CustomUrlSerializer } from './custom-url-serializer'; | |
@NgModule({ | |
imports: [ | |
BrowserModule | |
], | |
declarations: [ AppComponent ], | |
providers: [ | |
{ provide: UrlSerializer, useClass: CustomUrlSerializer } | |
], | |
bootstrap: [ AppComponent ] | |
}) | |
export class AppModule { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment