Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F59057333
main-menu-component.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
Fri, Apr 19, 11:53
Size
1018 B
Mime Type
text/x-java
Expires
Sun, Apr 21, 11:53 (2 d)
Engine
blob
Format
Raw Data
Handle
17115358
Attached To
rNIETZSCHEBETAAPP Nietzsche-Beta-App
main-menu-component.component.ts
View Options
import { Component, OnInit } from '@angular/core';
import {Subscription} from 'rxjs';
import {ActivatedRoute, Params} from '@angular/router';
import { CONTENT_VIEW_ROUTE, DOCUMENTATION_ROUTE, HOME_ROUTE, IMPRESSUM_ROUTE, PROJECT_ROUTE } from '../constants';
@Component({
selector: 'app-main-menu-component',
templateUrl: './main-menu-component.component.html',
styleUrls: ['./main-menu-component.component.scss']
})
export class MainMenuComponentComponent implements OnInit {
contentViewLink: string[] = [ CONTENT_VIEW_ROUTE ];
fullScreen: string;
impressumLink: string[] = [ IMPRESSUM_ROUTE ];
homeLink: string[] = [ HOME_ROUTE ];
projectLink: string[] = [ PROJECT_ROUTE];
queryParamSub: Subscription;
queryParams: Params;
constructor(private activatedRoute: ActivatedRoute) { }
ngOnInit() {
this.queryParamSub = this.activatedRoute.queryParams.subscribe( (queryParams: Params ) => {
this.fullScreen = queryParams.fullscreen;
this.queryParams = queryParams;
});
}
}
Event Timeline
Log In to Comment