Page MenuHomec4science

rhizome-view-component.component.ts
No OneTemporary

File Metadata

Created
Sat, Nov 16, 00:52

rhizome-view-component.component.ts

import { Component, OnInit } from '@angular/core';
import {ActivatedRoute, Params, Router} from '@angular/router';
import { TlnQueryParams} from '../models/models';
@Component({
selector: 'app-rhizome-view-component',
templateUrl: './rhizome-view-component.component.html',
styleUrls: ['./rhizome-view-component.component.css']
})
export class RhizomeViewComponentComponent implements OnInit {
queryParams: TlnQueryParams;
constructor(private router: Router,
private activatedRoute: ActivatedRoute) { }
ngOnInit() {
this.activatedRoute.queryParams.subscribe( (queryParams: Params ) => {
this.queryParams = new TlnQueryParams(
queryParams.navBarOpenState,
queryParams.navContext,
queryParams.manuscript,
queryParams.page,
queryParams.selectedLines,
queryParams.selectedWords,
queryParams.viewMode,
queryParams.fullscreen,
queryParams.zoom
);
});
}
}

Event Timeline