AngularJS - accessing Attributes of a DOM element outside Angular -


how dom element attributes similar way (outside angular) $scope (angular.element(element).scope()) ?

i need can use $animator service on element being inserted dom

the part of code like:

var element = $compile(template,scope); var attrs = ? // element.attrs(),                // won't work not perform normalization var animation = $animator(scope,attrs); animation.enter(element,parent); 

this worked me you'll need know attributes you're looking for...

console.log( angular.element(element)[0].getattribute('class') ); 

actually should work too:

var attrs = angular.element(element)[0].attributes; 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -