import {Component, Input} from '@angular/core'; import {Observable} from 'rxjs/Observable'; import {Title, Meta} from '@angular/platform-browser'; @Component({ selector: 'my-claims', template: `
My links
` }) export class MyClaimsComponent { @Input() claimsInfoURL:string; @Input() showLatestClaims:boolean; constructor (private _meta: Meta, private _title: Title) { var title = "OpenAIRE | My links"; this._meta.updateTag({content:title},"property='og:title'"); this._title.setTitle(title); } ngOnInit() { } }