【发布时间】:2013-11-14 15:39:52
【问题描述】:
如何知道给定页面上的所有插值和处理何时完成?
compile: function (tElement, tAttrs) {
return function (scope, element, attrs) {
element.html(tpl);
$compile(element.contents())(scope);
};
},
这不是同步的。如果有 {{stuff}} 和 ng-repeat="..." 等...在链接函数返回时,它们并不能保证全部完成。
我需要一种方法来了解页面何时呈现并且没有更多指令要处理,以便我可以使用#hashes 导航到页面上通过角度创建的元素。 (使用 $anchorScroll)
【问题讨论】:
标签: angularjs