我正在与Angular合作并尝试整理我的代码。 对于模板,有templateURL,与样式相同。 但是,动画有什么方法可以放入不同的文件?
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
animations: [
trigger('blasted', [
state('up', style({
//transform: 'rotate(-90deg)',
background: "grey",
opacity:0.4,
transform: 'rotate(-2deg)',
})),
state('blow', style({.......................................
我需要一个animationUrl