猿问

如何使用AngularJS重新加载或渲染整个页面

如何使用AngularJS重新加载或渲染整个页面


人到中年有点甜
浏览 1173回答 2
2回答

至尊宝的传说

$scope.on_impersonate_success = function(response) {//$window.location.reload();//This cancels any current request$location.path('/');//This works as expected, if path!= current_path};$scope.impersonate = function(username) {return auth.impersonate(username). then($scope.on_impersonate_success, $scope.on_auth_failed);};

互换的青春

在你的ng-repeat的元素上写ng-init="checkLast($last)"$scope.checkLast = function($last){if($last){console.log('渲染结束');}}当然你也能自己封装个 repeat-finish 的directive来做
随时随地看视频慕课网APP

相关分类

AngularJS
我要回答