@angular/animations#AnimationEvent TypeScript Examples
The following examples show how to use
@angular/animations#AnimationEvent.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: message.component.ts From alauda-ui with MIT License | 6 votes |
onAnimationEnd(event: AnimationEvent) {
try {
if (
this.viewContainerRef.element &&
event.toState === this.animateStartEnd
) {
(this.viewContainerRef.element.nativeElement as HTMLElement).remove();
this.afterClosed.next();
this.afterClosed.complete();
}
} catch {
throw new Error('No outer layer can be found!');
}
}
Example #2
Source File: bucket.component.ts From Angular-Cookbook with MIT License | 5 votes |
onAnimationStarted(event: AnimationEvent) {
this.isSaving = true;
}
Example #3
Source File: bucket.component.ts From Angular-Cookbook with MIT License | 5 votes |
onAnimationDone(event: AnimationEvent) {
this.isSaving = false;
this.selectedFruit = null;
}
Example #4
Source File: bucket.component.ts From Angular-Cookbook with MIT License | 5 votes |
onAnimationStarted( event: AnimationEvent ) {
this.isSaving = true;
}
Example #5
Source File: bucket.component.ts From Angular-Cookbook with MIT License | 5 votes |
onAnimationDone( event: AnimationEvent ) {
this.isSaving = false;
this.selectedFruit = '' as null;
}