角度样式styleUrl模板templateUrl

时间:2017-09-05 19:06:55

标签: angular animation

我正在与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

0 个答案:

没有答案