Hi Luke,
You don’t need jquery at all for this. And in a directive you have the element available, in a pre wrapped state.
like this:
angular.module('myApp', []).directive('catchTransitions', function(){
return{
link: function(scope,element){
element.on('transitionend', function(e){ //be aware of other event names from other browsers vendor-prefixed
console.log(''got a css transition event", e)
})
}
})
I prefer to use jquery as least as possible. Nowadays I seldom include it in my projects.
Regards
Sander
--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/iHzCYjUfKww/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.