Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F62695315
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
Tue, May 14, 22:57
Size
989 B
Mime Type
text/x-java
Expires
Thu, May 16, 22:57 (2 d)
Engine
blob
Format
Raw Data
Handle
17678552
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