在使用 templateUrl 的指令上使用 $animateCss 会导致崩溃
作者: CodySchaaf创建于 2016年2月18日更新于 2020年5月20日
标签type: bugcomponent: $compilecomponent: ngAnimatelazy transclusion
$animateCss 最终会操作一个元素,该元素在指令渲染后不会出现在视图中。 如您在 plunker 中看到的,如果取消注释模板(并注释 templateUrl),该元素将被正确样式化并出现在视图中。 但是,当指令使用 templateUrl 时,该元素不会被样式化。
内容来源: angular/angular.js