Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F61569923
quant.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 7, 12:41
Size
655 B
Mime Type
text/x-java
Expires
Thu, May 9, 12:41 (2 d)
Engine
blob
Format
Raw Data
Handle
17529481
Attached To
rNIETZSCHEBETAAPP Nietzsche-Beta-App
quant.component.ts
View Options
import { Component, ElementRef, OnInit, ViewChild } from '@angular/core';
import {ActivatedRoute, Params} from '@angular/router';
@Component({
selector: 'app-quant',
templateUrl: './quant.component.html',
styleUrls: ['./quant.component.scss']
})
export class QuantComponent implements OnInit {
private readonly leftOffset = 361;
width: number = 1000;
constructor(private activatedRoute: ActivatedRoute) { }
ngOnInit() {
this.activatedRoute.queryParams.subscribe( (queryParams: Params) =>{
this.width = (queryParams.navBarOpenState === 'true') ? window.innerWidth - this.leftOffset : window.innerWidth - 20;
});
}
}
Event Timeline
Log In to Comment