import { Component , Input } from "@angular/core" ; declare let window ; @ Component ( { selector : 'jp-editor-outline' , templateUrl : './editor-outline.component.html' } ) export class EditorOutlineComponent { @ Input ( ) headers : Array < any > ; @ Input ( ) showInDialog : boolean = false ; getHeaderUrl ( id ) { let link = window . location . origin + window . location . pathname ; return link + ( id ? '#' + id : '' ) ; } }