17 lines
320 B
TypeScript
17 lines
320 B
TypeScript
import {Directive, ElementRef} from "@angular/core";
|
|
|
|
@Directive({
|
|
selector: '[transition-group-item]'
|
|
})
|
|
export class TransitionGroupItemDirective {
|
|
prevPos: any;
|
|
newPos: any;
|
|
el: HTMLElement;
|
|
moved: boolean;
|
|
moveCallback: any;
|
|
|
|
constructor(elRef: ElementRef) {
|
|
this.el = elRef.nativeElement;
|
|
}
|
|
}
|