Project

General

Profile

« Previous | Next » 

Revision 58110

Refactored the landing page to become home and to have a second about page as well

View differences:

app-routing.module.ts
1 1
import { RouterModule, Routes } from '@angular/router';
2 2
import { NgModule } from '@angular/core';
3
import { LandingComponent } from './pages/landing/landing.component';
3
import { HomeComponent } from './pages/landing/home/home.component';
4 4
import { AuthGuardService } from './services/auth-guard.service';
5 5
import { ForbiddenPageComponent } from './shared/reusablecomponents/403-forbidden-page.component';
6 6
import { EmptyPageComponent } from "./pages/emptypage/empty-page.component";
7 7
import { JoinComponent } from "./pages/join/join.component";
8
import { AboutComponent } from "./pages/landing/about/about.component";
8 9

  
9 10
const appRoutes: Routes = [
10 11
  {
11 12
    path: '',
12
    redirectTo: '/landing',
13
    redirectTo: '/home',
13 14
    pathMatch: 'full'
14 15
  },
15 16
  {
16
    path: 'landing',
17
    component: LandingComponent
17
    path: 'home',
18
    component: HomeComponent
18 19
  },
19 20
  {
21
    path: 'about',
22
    component: AboutComponent
23
  },
24
  {
20 25
    path: 'join',
21 26
    component: JoinComponent,
22 27
    canActivate: [AuthGuardService]
......
74 79
  },
75 80
  // {
76 81
  //   path: '',
77
  //   redirectTo: '/landing',
82
  //   redirectTo: '/home',
78 83
  //   pathMatch: 'full'
79 84
  // },
80 85
  {

Also available in: Unified diff