27 lines
856 B
TypeScript
27 lines
856 B
TypeScript
import { CommonModule } from '@angular/common';
|
|
import { Component } from '@angular/core';
|
|
import { FormsModule } from '@angular/forms';
|
|
import { NavigationEnd, Router, RouterModule } from '@angular/router';
|
|
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
import { initFlowbite } from 'flowbite';
|
|
@Component({
|
|
selector: 'app-footer',
|
|
standalone: true,
|
|
imports: [CommonModule, FormsModule, RouterModule, FontAwesomeModule],
|
|
templateUrl: './footer.component.html',
|
|
styleUrl: './footer.component.scss',
|
|
})
|
|
export class FooterComponent {
|
|
privacyVisible = false;
|
|
termsVisible = false;
|
|
currentYear: number = new Date().getFullYear();
|
|
constructor(private router: Router) {}
|
|
ngOnInit() {
|
|
this.router.events.subscribe(event => {
|
|
if (event instanceof NavigationEnd) {
|
|
initFlowbite();
|
|
}
|
|
});
|
|
}
|
|
}
|