Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Created May 26, 2018 08:29
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 uno-de-piera/c8767f5e1f27d051c9d30105997442a9 to your computer and use it in GitHub Desktop.
Save uno-de-piera/c8767f5e1f27d051c9d30105997442a9 to your computer and use it in GitHub Desktop.
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import {TodoappComponent} from './todoapp/todoapp.component';
const routes: Routes = [
{ path: '', redirectTo: '/', pathMatch: 'full' },
{ path: 'todoapp', component: TodoappComponent},
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment