Renamed many components + started implementing lazy loading
This commit is contained in:
1 parent
c8578ccf77
commit
60b517500f
80 files changed
+274
-242
No files matched your search
@@ -1,12 +1,10 @@
|
||||
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';
|
||||
import { LibraryComponent } from './features/pages/library/library.component';
|
||||
import { ListsComponent } from './features/pages/lists/lists.component';
|
||||
import { ListInfoComponent } from './features/list-info/list-info.component';
|
||||
import { HomeComponent } from './features/home/home.component';
|
||||
import { SearchComponent } from './features/discover/search/search.component';
|
||||
import { TrendingComponent } from './features/discover/trending/trending.component';
|
||||
import { PopularComponent } from './features/discover/popular/popular.component';
|
||||
import { LibraryComponent } from './features/library/library.component';
|
||||
|
||||
const routes: Routes = [
|
||||
{ path: '', redirectTo: '/home', pathMatch: 'full' },
|
||||
@@ -16,8 +14,10 @@ const routes: Routes = [
|
||||
{ path: 'trending', component: TrendingComponent },
|
||||
|
||||
{ path: 'library', component: LibraryComponent },
|
||||
{ path: 'lists', component: ListsComponent },
|
||||
{ path: 'lists/:id', component: ListInfoComponent },
|
||||
{
|
||||
path: 'user-collections',
|
||||
loadChildren: () => import('./features/collections/user-collections.module').then(m => m.UserCollectionsModule)
|
||||
},
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
|
||||
Reference in new issue
Block a user