Skip to content

Instantly share code, notes, and snippets.

@wKoza
Created November 13, 2016 08:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wKoza/bfb5ab7e532bbf4af770f63319a2f18e to your computer and use it in GitHub Desktop.
Save wKoza/bfb5ab7e532bbf4af770f63319a2f18e to your computer and use it in GitHub Desktop.
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