Try replacing [@slide-dialog]="alertstate" with [@slide-dialog]="display ? 'active' : 'inactive'" .
In addition, if you want the animation to be applied when a modality appears, replace
transition('active => inactive', animate('400ms ease'))
transition('inactive => active', animate('400ms ease'))
Edit
To go down the slide, add this to your CSS:
.ui-dialog { top: inherit !important; }
and your states should look something like this:
state('inactive', style({ position: 'absolute', top: '0px' })), state('active', style({ position: 'absolute', top: '150px' })),
See working plunker
source share