Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { LoginComponent } from './login/login.component';
- import { NgModule } from '@angular/core';
- import { CommonModule } from '@angular/common';
- import { RouterModule , Routes } from '@angular/router';
- const routes: Routes = [
- { path: '', redirectTo: '/login' , pathMatch: 'full' },
- { path: 'login', component: LoginComponent },
- { path: 'highsales', loadChildren: './modules/features/features.module#FeaturesModule' },
- { path: '**', redirectTo: '' },
- ];
- @NgModule({
- imports: [
- CommonModule,
- RouterModule.forRoot(routes)
- ],
- declarations: [],
- exports: [
- RouterModule
- ]
- })
- export class AppRoutingModule { }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement