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, Input} from '@angular/core'; | |
import {Observable, Subscription, of} from 'rxjs'; | |
import {share} from 'rxjs/operators'; | |
/** | |
* Adds the css class `active-animate` to the element, if given expression is truthy, but after a setTimeout without triggering change detection | |
* This allows to animate an element entering the view, as you can't have an animation on an element that was just added to the DOM | |
* | |
* Example: | |
* |