UNPKG

clr-angular-static-fix

Version:

1. Install Clarity Icons package through npm:

21 lines (19 loc) 675 B
/* * Copyright (c) 2016-2018 VMware, Inc. All Rights Reserved. * This software is released under MIT license. * The full license information can be found in LICENSE in the root directory of this project. */ import { Component, ElementRef } from '@angular/core'; import { IfOpenService } from '../../utils/conditional/if-open.service'; import { POPOVER_HOST_ANCHOR } from '../common/popover-host-anchor.token'; @Component({ selector: 'clr-tooltip', template: ` <ng-content></ng-content> `, host: { '[class.tooltip]': 'true', }, providers: [IfOpenService, { provide: POPOVER_HOST_ANCHOR, useExisting: ElementRef }], }) export class ClrTooltip {}