import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core'; import { trigger, transition, animate, style } from '@angular/animations'; @Component({ selector: 'app-definition-save-dialog-component', templateUrl: './definition-save-dialog.component.html', styleUrls: ['./definition-save-dialog.component.css'], animations: [ trigger('dialog', [ transition('void => *', [ style({ transform: 'scale3d(.3, .3, .3)' }), animate(100) ]), transition('* => void', [ animate(100, style({ transform: 'scale3d(.0, .0, .0)' })) ]) ]) ] }) export class DefinitionSaveDialogComponent implements OnInit { @Input() closable = true; @Input() visible: boolean; constructor() { } ngOnInit() { } }