Skip to content

Instantly share code, notes, and snippets.

@roelofjan-elsinga
Created July 22, 2018 07:08
Show Gist options
  • Save roelofjan-elsinga/ec5fb5663700f845a2fe88d75f0cdaf7 to your computer and use it in GitHub Desktop.
Save roelofjan-elsinga/ec5fb5663700f845a2fe88d75f0cdaf7 to your computer and use it in GitHub Desktop.
UI router angular hybrid in the app.module
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