refactor to define helper service more accurately
This commit is contained in:
1 parent
5527acfb6a
commit
7618e4bf5d
28 files changed
+78
-403
No files matched your search
@@ -7,7 +7,7 @@
|
||||
</app-parallax>
|
||||
<div class="height-container">
|
||||
<div class="privacy-container">
|
||||
<div class="floating-nav" [class.hidden]="isMobile">
|
||||
<div class="floating-nav" [class.hidden]="isNarrow">
|
||||
<ul>
|
||||
<li><a href="#controller" [class.active]="activeSection === 'controller'" (click)="scrollToSection($event, 'controller')">{{ 'privacy.nav.controller' | translate }}</a></li>
|
||||
<li><a href="#what-data" [class.active]="activeSection === 'whatData'" (click)="scrollToSection($event, 'what-data')">{{ 'privacy.nav.whatData' | translate }}</a></li>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {AfterViewInit, Component, OnInit} from '@angular/core';
|
||||
import {DeviceDetectorService} from '../shared/services/device-detector.service';
|
||||
import {ViewportService} from '../shared/services/viewport.service';
|
||||
import {Title} from '@angular/platform-browser';
|
||||
import {TranslatePipe} from '@ngx-translate/core';
|
||||
import {ParallaxComponent} from '../shared/parallax/parallax.component';
|
||||
@@ -15,12 +15,12 @@ import {ParallaxComponent} from '../shared/parallax/parallax.component';
|
||||
})
|
||||
|
||||
export class PrivacyComponent implements OnInit, AfterViewInit {
|
||||
isMobile: boolean = false;
|
||||
isNarrow: boolean = false;
|
||||
activeSection: string = '';
|
||||
copiedSection: string | null = null;
|
||||
|
||||
constructor(
|
||||
private deviceService: DeviceDetectorService,
|
||||
private deviceService: ViewportService,
|
||||
private titleService: Title,
|
||||
) {}
|
||||
|
||||
@@ -39,7 +39,7 @@ export class PrivacyComponent implements OnInit, AfterViewInit {
|
||||
|
||||
ngOnInit() {
|
||||
this.titleService.setTitle('Privacy Policy | itzMiney');
|
||||
this.isMobile = this.deviceService.isMobile;
|
||||
this.isNarrow = this.deviceService.isNarrow;
|
||||
}
|
||||
|
||||
ngAfterViewInit() {
|
||||
|
||||
Reference in new issue
Block a user