Skip to content

Instantly share code, notes, and snippets.

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},
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
You can’t perform that action at this time.