Revision 55570
Added by Argiro Kokogiannaki almost 5 years ago
publication.component.ts | ||
---|---|---|
1 | 1 |
import {Component, ViewChild} from '@angular/core'; |
2 |
import {ElementRef, Input} from '@angular/core';
|
|
2 |
import {Input} from '@angular/core'; |
|
3 | 3 |
import {ActivatedRoute, Router} from '@angular/router'; |
4 | 4 |
import {Title, Meta} from '@angular/platform-browser'; |
5 | 5 |
|
... | ... | |
12 | 12 |
import {PiwikService} from '../../utils/piwik/piwik.service'; |
13 | 13 |
import {PublicationService} from './publication.service'; |
14 | 14 |
import { SEOService } from '../../sharedComponents/SEO/SEO.service'; |
15 |
import {HelperFunctions} from "../../utils/HelperFunctions.class"; |
|
15 | 16 |
|
16 | 17 |
|
17 | 18 |
@Component({ |
... | ... | |
72 | 73 |
sub: any; piwiksub: any; infoSub: any; |
73 | 74 |
properties:EnvProperties; |
74 | 75 |
|
75 |
constructor ( private element: ElementRef, |
|
76 |
private _publicationService: PublicationService, |
|
76 |
constructor ( private _publicationService: PublicationService, |
|
77 | 77 |
private _piwikService:PiwikService, |
78 | 78 |
private route: ActivatedRoute, |
79 | 79 |
private _meta: Meta, |
... | ... | |
293 | 293 |
} |
294 | 294 |
|
295 | 295 |
public scroll() { |
296 |
if (typeof document !== 'undefined') { |
|
297 |
this.element.nativeElement.scrollIntoView(); |
|
298 |
} |
|
296 |
HelperFunctions.scroll(); |
|
299 | 297 |
} |
300 | 298 |
/* |
301 | 299 |
start(i: number, bioentitiesPage: number) { |
Also available in: Unified diff
[Library|newlinking]
Merging trunk|library into branch newlinking 55132:55568