import { Component, OnInit, Input } from '@angular/core'; import { trigger, transition, style, animate } from '@angular/animations'; @Component({ selector: 'app-form-fields-add-edit', templateUrl: './form-fields-add-edit.component.html', styleUrls: ['./form-fields-add-edit.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 FormFieldsAddEditComponent implements OnInit { @Input() closable = true; @Input() visible: boolean; constructor() { } ngOnInit() { } }