kalidea/kaligraphi

View on GitHub
src/app/04-overlay/tooltip/tooltip.component.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { ChangeDetectionStrategy, Component, OnInit, ViewEncapsulation } from '@angular/core';

@Component({
  selector: 'app-tooltip',
  templateUrl: './tooltip.component.html',
  styleUrls: ['./tooltip.component.sass'],
  encapsulation: ViewEncapsulation.None,
  changeDetection: ChangeDetectionStrategy.OnPush
})
export class TooltipComponent implements OnInit {

  themes: any;

  reverse: boolean;

  constructor() {
  }

  get hasReverse(): boolean {
    return this.themes ? this.themes.find(t => t === 'reverse') !== undefined : false;
  }

  ngOnInit() {
  }

}