import { ChangeDetectionStrategy, Input, Component } from '@angular/core'; import { PopoverConfig } from './popover.config'; import { isBs3 } from '../utils/ng2-bootstrap-config'; @Component({ selector: 'popover-container', changeDetection: ChangeDetectionStrategy.OnPush, // tslint:disable-next-line host: { '[class]': '"popover in popover-" + placement + " " + "bs-popover-" + placement + " " + placement + " " + containerClass', '[class.show]': '!isBs3', role: 'tooltip', style: 'display:block;' }, styles: [` :host.bs-popover-top .arrow, :host.bs-popover-bottom .arrow { left: calc(50% - 5px); } :host.bs-popover-left .arrow, :host.bs-popover-right .arrow { top: calc(50% - 2.5px); } `], template: `