V
V
Vladimir2016-05-23 13:36:56
Angular
Vladimir, 2016-05-23 13:36:56

Why doesn't the animationend event bubble up in the component's controller?

Here is an example in pure JavaScript, here you can see that the animationend event pops up.
https://jsfiddle.net/Casufi/7Lut4vdf/
I'm trying to catch an event inside the component controller on one of the child elements built via ng-repeat.

getTransition = function(tran){
    console.log "tran": tran
  }
  $element[0].addEventListener("animationend", function(e){getTransition(e)})

Not successful

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2016-05-23
@Casufi

Hang up, everything pops up
codepen.io/anon/pen/bpXorL

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question