我如何以类似的方式(外部角度)获得DOM元素?Attributes$scope (angular.element(element).scope())
我需要这个,所以我可以$animator在插入的某些元素上使用服务DOM
我的代码部分如下所示:
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);