Created
January 24, 2018 02:43
-
-
Save camilogiraldo/8c291461300eaa335aae24f71fd6088d to your computer and use it in GitHub Desktop.
Routing for our lazy loaded route
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 { NgModule } from '@angular/core'; | |
import { Routes, RouterModule } from '@angular/router'; | |
import { BigFeatureComponentComponent } from './big-feature-component/big-feature-component.component'; | |
const routes: Routes = [ | |
{ path: '', component: BigFeatureComponentComponent} | |
]; | |
@NgModule({ | |
imports: [RouterModule.forChild(routes)], | |
exports: [RouterModule] | |
}) | |
export class BigModuleRoutingModule { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment