Project

General

Profile

1
/**
2
 * Created by stefania on 8/29/16.
3
 */
4
import {ModuleWithProviders, NgModule} from "@angular/core";
5
import {RouterModule, Routes} from "@angular/router";
6
import {HomeComponent} from './shared/home/home.component';
7

    
8
const appRoutes: Routes = [
9
  {
10
    path: '',
11
    redirectTo: '/home',
12
    pathMatch: 'full'
13
  },
14
  {
15
    path: 'home',
16
    component: HomeComponent
17
  },
18
];
19

    
20
export const appRoutingProviders: any[] = [];
21

    
22
export const routing: ModuleWithProviders = RouterModule.forRoot(appRoutes);
23

    
24
/*
25
@NgModule ({
26
  imports: [RouterModule.forRoot(appRoutes)],
27
  exports: [RouterModule]
28
})
29

    
30
export class AppRouting {}
31
*/
(4-4/7)