Created
November 13, 2016 08:21
-
-
Save wKoza/bfb5ab7e532bbf4af770f63319a2f18e to your computer and use it in GitHub Desktop.
This file contains 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 { AccueilComponent } from "./accueil/accueil.component"; | |
import { Page1Component } from "./page1/page1.component"; | |
const routes: Routes = [ | |
{ path: '', component: AccueilComponent }, | |
{ path: 'page1', component: Page1Component }, | |
]; | |
@NgModule({ | |
imports: [RouterModule.forRoot(routes)], | |
exports: [RouterModule], | |
providers: [] | |
}) | |
export class AppRoutingModule { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment