-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp-routing.module.ts
36 lines (34 loc) · 1.19 KB
/
app-routing.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { OpenBoardzComponent } from './open-boardz/open-boardz.component';
import { HostComponent } from './host/host.component';
import { MysquarezComponent } from './mysquarez/mysquarez.component';
//import { LoginComponent } from './login/login.component';
//import { AuthGuard } from './shared/auth.guard';
//import { CartComponent } from './cart/cart.component';
import { ProfileComponent } from './profile/profile.component';
import { ViewBoardComponent } from './view-board/view-board.component';
const routes: Routes = [
{
path: 'openboardz',
component: OpenBoardzComponent
//canActivate: [AuthGuard],
},
{ path: 'host', component: HostComponent/* , canActivate: [AuthGuard] */ },
{
path: 'mysquarez',
component: MysquarezComponent,
//canActivate: [AuthGuard],
},
{ path: 'profile', component: ProfileComponent/* , canActivate: [AuthGuard] */ },
{
path: 'viewboard/:boardId',
component: ViewBoardComponent
/* canActivate: [AuthGuard], */
},
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule { }