Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cd9bc72
commit 45a9d11
Showing
14 changed files
with
45 additions
and
310 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,61 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { RouterModule, Routes } from '@angular/router'; | ||
import { ProductsComponent } from './products/products.component'; | ||
import { AuthGuard } from './auth/auth.guard'; | ||
import { LoginComponent } from './auth/login/login.component'; | ||
import { CartComponent } from './cart/cart.component'; | ||
import { ProductPageComponent } from './product-page/product-page.component'; | ||
import { LoginComponent } from './auth/login/login.component'; | ||
import { AuthGuard } from './auth/auth.guard'; | ||
import { ProductsComponent } from './products/products.component'; | ||
|
||
const routes: Routes = [ | ||
{ | ||
component: ProductsComponent, | ||
path: '', | ||
pathMatch: 'full', | ||
canActivate: [AuthGuard] | ||
canActivate: [AuthGuard], | ||
}, | ||
{ | ||
component: ProductPageComponent, | ||
path: 'product/:id', | ||
canActivate: [AuthGuard] | ||
canActivate: [AuthGuard], | ||
}, | ||
{ | ||
component: CartComponent, | ||
path: 'cart', | ||
canActivate: [AuthGuard] | ||
canActivate: [AuthGuard], | ||
}, | ||
{ | ||
component: LoginComponent, | ||
path: 'login' | ||
path: 'login', | ||
}, | ||
{ | ||
path: 'todos', | ||
canActivate: [AuthGuard], | ||
loadChildren: () => import('./todos-app/todos.module').then(m => m.TodosModule) | ||
loadChildren: () => import('./todos-app/todos.module').then((m) => m.TodosModule), | ||
}, | ||
{ | ||
path: 'contacts', | ||
loadChildren: () => import('./contacts/contacts.module').then(m => m.ContactsModule) | ||
loadChildren: () => import('./contacts/contacts.module').then((m) => m.ContactsModule), | ||
}, | ||
{ | ||
path: 'stories', | ||
loadChildren: () => import('./stories/stories.module').then(m => m.StoriesModule) | ||
loadChildren: () => import('./stories/stories.module').then((m) => m.StoriesModule), | ||
}, | ||
{ | ||
path: 'movies', | ||
loadChildren: () => import('./movies/movies.module').then(m => m.MoviesModule) | ||
loadChildren: () => import('./movies/movies.module').then((m) => m.MoviesModule), | ||
}, | ||
{ | ||
path: 'widgets', | ||
loadChildren: () => import('./widgets/widgets.module').then(m => m.WidgetsModule) | ||
loadChildren: () => import('./widgets/widgets.module').then((m) => m.WidgetsModule), | ||
}, | ||
{ | ||
path: 'posts', | ||
loadChildren: () => import('./posts/posts.module').then(m => m.PostsModule) | ||
loadChildren: () => import('./posts/posts.module').then((m) => m.PostsModule), | ||
}, | ||
{ | ||
path: 'formsmanager', | ||
loadChildren: () => import('./forms-manager/forms-manager.module').then(m => m.FormsManagerModule) | ||
} | ||
]; | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forRoot(routes)], | ||
exports: [RouterModule] | ||
exports: [RouterModule], | ||
}) | ||
export class AppRoutingModule {} |
18 changes: 0 additions & 18 deletions
18
apps/angular-store-app/src/app/forms-manager/forms-manager.module.ts
This file was deleted.
Oops, something went wrong.
Empty file.
122 changes: 0 additions & 122 deletions
122
apps/angular-store-app/src/app/forms-manager/forms-manager/forms-manager.component.html
This file was deleted.
Oops, something went wrong.
92 changes: 0 additions & 92 deletions
92
apps/angular-store-app/src/app/forms-manager/forms-manager/forms-manager.component.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
Oops, something went wrong.