5
我如何获得DOM
元素Attributes
类似的方式(外角)我得到$scope
(angular.element(element).scope())
?AngularJS - 访问角度外的DOM元素的属性
我需要这个,所以我可以说被插入DOM
某些元素上使用$animator
服务我的代码的部分看起来像:
var element = $compile(template,scope);
var attrs = ? // I would do element.attrs(),
// but this won't work as it does not perform normalization
var animation = $animator(scope,attrs);
animation.enter(element,parent);
以供将来参考,如果您包含'javascript'标记,您将会让更多人看到您的问题。 – 2013-09-13 19:40:11