Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F71207841
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
Wed, Jul 10, 07:31
Size
1 KB
Mime Type
text/x-java
Expires
Fri, Jul 12, 07:31 (2 d)
Engine
blob
Format
Raw Data
Handle
18919010
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';
import { environment } from './../environments/environment';
declare var require: any;
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent implements OnInit {
title = 'Digitale Manuskriptedition: Der späte Nietzsche';
theme = 'standard-theme';
version: string;
showVersion: boolean = true;
fullScreen: string;
queryParamSub: Subscription;
constructor(private overlayContainer: OverlayContainer, private activatedRoute: ActivatedRoute) {
this.version = require( '../../package.json').version;
if (environment.showVersion != undefined){
this.showVersion = environment.showVersion;
}
}
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