Removed redundant meta tag handling, updated routing

This commit is contained in:
itzMiney committed 2024-12-30 20:56:47 +01:00
1 parent cce6b58331
commit b83e994f06
10 files changed
+51 -186

No files matched your search

+4 -2
View File
@@ -2,6 +2,7 @@ import {AfterViewInit, Component, Inject, OnDestroy, OnInit, PLATFORM_ID} from '
import {VantaBackgroundService} from '../services/vanta-background.service';
import {DeviceDetectorService} from '../services/device-detector.service';
import {isPlatformBrowser, NgStyle} from '@angular/common';
import {Title} from '@angular/platform-browser';
@Component({
selector: 'app-portfolio',
@@ -17,11 +18,12 @@ export class PortfolioComponent implements OnInit, OnDestroy, AfterViewInit {
constructor(
private vantaService: VantaBackgroundService,
private deviceService: DeviceDetectorService,
private titleService: Title,
@Inject(PLATFORM_ID) private platformId: Object
) {
}
) {}
ngOnInit() {
this.titleService.setTitle('Portfolio | itzMiney');
this.isMobile = this.deviceService.isMobile;
if (isPlatformBrowser(this.platformId)) {
window.addEventListener('resize', this.onResize.bind(this));