parent
27143e646a
commit
d7dc8f5e39
@ -1,8 +1,23 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
import { NgIf } from '@angular/common';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-navbar',
|
selector: 'app-navbar',
|
||||||
imports: [],
|
imports: [NgIf],
|
||||||
templateUrl: './navbar.component.html',
|
templateUrl: './navbar.component.html',
|
||||||
})
|
})
|
||||||
export class NavbarComponent {}
|
export class NavbarComponent {
|
||||||
|
isHomePage: boolean = false;
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
}
|
||||||
|
|
||||||
|
ngOnInit(): void {
|
||||||
|
let url = window.location.pathname;
|
||||||
|
if (url === '/') {
|
||||||
|
this.isHomePage = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in new issue