3

I'me using this thread in order to load components dynamically. I'm trying to add sliding/fade animation while changing between components. Does anyone has idea how can I achieve this with the new Angular2 animation?

Community
  • 1
  • 1
galvan
  • 7,400
  • 7
  • 38
  • 55

1 Answers1

0

Have you tried injecting (from angular2/core)?

constructor(private renderer: Renderer) { ... }

Then later in your code using:

this.renderer.animate(freshComponent.location, ..., ..., 0..1, 0..1, '');
Patrick Michalina
  • 1,279
  • 2
  • 12
  • 15