Revision 58110
Added by Stefania Martziou about 4 years ago
app.component.ts | ||
---|---|---|
62 | 62 |
}); |
63 | 63 |
} |
64 | 64 |
|
65 |
isHomeRoute() {
|
|
65 |
isLandingRoute() {
|
|
66 | 66 |
// console.log('Is home route? Route is: ' + this.router.url); |
67 |
return (this.router.url === '/') || (this.router.url === '/landing');
|
|
67 |
return (this.router.url === '/') || (this.router.url === '/home') || (this.router.url === '/about');
|
|
68 | 68 |
} |
69 | 69 |
|
70 | 70 |
public toggleOpen(event: MouseEvent) { |
Also available in: Unified diff
Refactored the landing page to become home and to have a second about page as well