Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78332493
app.component.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Aug 19, 21:22
Size
989 B
Mime Type
text/x-java
Expires
Wed, Aug 21, 21:22 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
20027218
Attached To
rNIETZSCHEBETAAPP Nietzsche-Beta-App
app.component.ts
View Options
import {Component, OnInit} from '@angular/core';
import { OverlayContainer} from '@angular/cdk/overlay';
import {TlnQueryParams} from './models/models';
import {Subscription} from 'rxjs';
import {ActivatedRoute, Params} from '@angular/router';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent implements OnInit {
title = 'nietzsche app';
theme = 'standard-theme';
fullScreen: string;
queryParamSub: Subscription;
constructor(private overlayContainer: OverlayContainer, private activatedRoute: ActivatedRoute) {
}
ngOnInit() {
this.overlayContainer.getContainerElement().classList.add(this.theme);
this.queryParamSub = this.activatedRoute.queryParams.subscribe( (queryParams: Params ) => {
this.fullScreen = queryParams.fullscreen;
});
}
onThemeChange() {
this.overlayContainer.getContainerElement().classList.add(this.theme);
}
}
Event Timeline
Log In to Comment