问题标签 [angular2-animation]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
44 浏览

angular - Angular 9 动画 - 如何在不将组件包装在新 div 中的情况下为组件的单个销毁设置动画?

是否有必要将组件包装在本身具有@animation 的元素(如 div)中,以便为该组件的销毁设置动画?到目前为止,这是我尝试过的:stackblitz

基本上,我想要这个:

而不是这个: