This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Directive, ElementRef, Renderer } from '@angular/core'; | |
/* | |
* Adds a class to a DOM element when the mouse is over its box (:hover). | |
* This DOESN'T support adding multiple classes separated by spaces. | |
* Usage: | |
* <button class="btn" hoverClass="btn-success"> | |
*/ | |
const HoverClassDirective = class { | |
constructor(elementRef, renderer) { |