24 lines
876 B
TypeScript
24 lines
876 B
TypeScript
import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core';
|
|
import { RouterOutlet } from '@angular/router';
|
|
import { NavbarComponent } from '../navbar/navbar.component';
|
|
import { MobileNavbarComponent } from '../mobile-navbar/mobile-navbar.component';
|
|
import { FooterComponent } from '../footer/footer.component';
|
|
import { ViewportService } from '../services/viewport.service';
|
|
|
|
@Component({
|
|
selector: 'app-public-layout',
|
|
imports: [RouterOutlet, NavbarComponent, MobileNavbarComponent, FooterComponent],
|
|
templateUrl: './public-layout.component.html',
|
|
changeDetection: ChangeDetectionStrategy.Eager,
|
|
styleUrl: './public-layout.component.css',
|
|
})
|
|
export class PublicLayoutComponent implements OnInit {
|
|
isNarrow = false;
|
|
|
|
constructor(private deviceService: ViewportService) {}
|
|
|
|
ngOnInit() {
|
|
this.isNarrow = this.deviceService.isNarrow;
|
|
}
|
|
}
|