mirror of
https://github.com/Raghu-Ch/KaplanTest.git
synced 2026-02-10 04:33:03 -05:00
16 lines
486 B
TypeScript
16 lines
486 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
import { ChannellistComponent } from './channellist/channellist.component';
|
|
|
|
const routes: Routes = [
|
|
{ path: '', redirectTo: 'channel', pathMatch: 'full' },
|
|
{ path: 'channel', component: ChannellistComponent },
|
|
{ path: '**', redirectTo: 'channel' }
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forRoot(routes)],
|
|
exports: [RouterModule]
|
|
})
|
|
export class AppRoutingModule { }
|