Skip to content

Commit

Permalink
Merge pull request #27 from AntonisFK/master
Browse files Browse the repository at this point in the history
updated tooltip.directive.ts if statement
  • Loading branch information
drozhzhin-n-e committed Sep 22, 2018
2 parents 86557f9 + a9a1dd6 commit e5d26a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/tooltip/tooltip.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,19 +87,19 @@ export class TooltipDirective {
}

@Input('trigger') set trigger(value: string) {
if (value){
if (value) {
this._options['trigger'] = value;
}
}

@Input('tooltip-class') set tooltipClass(value: string) {
if (value){
if (value) {
this._options['tooltip-class'] = value;
}
}

@Input('display') set display(value: boolean) {
if (value){
if (typeof(value) === 'boolean') {
this._options['display'] = value;
}
}
Expand Down

0 comments on commit e5d26a1

Please sign in to comment.