Created
July 22, 2018 07:08
-
-
Save roelofjan-elsinga/ec5fb5663700f845a2fe88d75f0cdaf7 to your computer and use it in GitHub Desktop.
UI router angular hybrid in the app.module
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 {UpgradeModule} from '@angular/upgrade/static'; | |
import {AppComponent} from './app.component'; | |
import {UIRouterUpgradeModule} from "@uirouter/angular-hybrid"; | |
@NgModule({ | |
declarations: [ | |
AppComponent | |
], | |
imports: [ | |
BrowserModule, | |
UpgradeModule, | |
UIRouterUpgradeModule.forRoot() //Just add the module here | |
], | |
providers: [], | |
bootstrap: [AppComponent] | |
}) | |
export class AppModule { | |
constructor() {} | |
ngDoBootstrap() { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment