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