import { AfterContentInit, AfterViewInit, Component, ElementRef, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core'; import {ActivatedRoute} from '@angular/router'; interface addthis { layers: Refresh; init: Function; toolbox: Function; } interface Refresh { refresh: Function; } declare var addthis: addthis; @Component({ selector: 'addThis', template: `
` }) export class AddThisComponent implements OnInit { @Output() event: EventEmitter