-
-
Save uno-de-piera/c8767f5e1f27d051c9d30105997442a9 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 {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