Instantly share code, notes, and snippets.

Embed
What would you like to do?
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