Can you move your animations to an external file in Angular2?
<p>The <code>@Component</code> annotation provides us with an <code>animations</code> property. This can be used to define a list of <code>triggers</code> each with a lot of <code>state</code> and <code>transition</code> properties.</p>

<p>When you add multiple animations to a component, this list can become pretty long. Also some animations would be really nice to use in other components as well. Having to put them directly in each component seems tedious and is repetitive - plus it violates the DRY principle.</p>

<p>You can define the template and styles properties on your component as well, but here you have the option of providing a <code>templateUrl</code> and <code>styleUrls</code> instead. I can't seem to find an <code>animationUrls</code> property - am i missing something - is there a way to do this?</p>