Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F62285183
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
Sun, May 12, 04:27
Size
941 B
Mime Type
text/x-java
Expires
Tue, May 14, 04:27 (2 d)
Engine
blob
Format
Raw Data
Handle
17628356
Attached To
rNIETZSCHEBETAAPP Nietzsche-Beta-App
app.component.ts
View Options
import {Component, OnInit} from '@angular/core';
import { OverlayContainer} from '@angular/cdk/overlay';
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