changes on app module and routing
This commit is contained in:
1 parent
56bdbee43d
commit
b1820521bc
17 files changed
+132
-387
No files matched your search
@@ -0,0 +1,20 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule, Routes } from '@angular/router';
|
||||
import { HomeComponent } from './features/pages/home/home.component';
|
||||
import { SearchComponent } from './features/pages/search/search.component';
|
||||
import { TrendingComponent } from './features/pages/trending/trending.component';
|
||||
import { PopularComponent } from './features/pages/popular/popular.component';
|
||||
|
||||
const routes: Routes = [
|
||||
{ path: '', redirectTo: '/home', pathMatch: 'full' },
|
||||
{ path: 'home', component: HomeComponent },
|
||||
{ path: 'search', component: SearchComponent },
|
||||
{ path: 'popular', component: PopularComponent },
|
||||
{ path: 'trending', component: TrendingComponent },
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forRoot(routes)],
|
||||
exports: [RouterModule],
|
||||
})
|
||||
export class AppRoutingModule {}
|
||||
Reference in new issue
Block a user