I have an custom event core-transitionend
(actually fired by Polymer), and I can set an event handler using document.addEventListener()
. But what's the best practice to do it in AngularJS?
Or, I can explicitly set a handler in DOM, i.e. <paper-ripple on-core-transitionend="enter()"></paper-ripple>
, but how to define this function in AngularJS?