1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
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() {
}
}
|