如何在app.run(function(){})中暂停执行整个应用程序?暂停执行angularjs应用程序
例如:
angular.module('frontendApp')
.run(function ($timeout) {
$timeout(function() {
next(); // While this function is not executed,
// the application must not download data and perform any task.
}, 1000);
});
什么是你的使用情况? –
我不知道该怎么做=) –