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