Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
$q 承诺 - 对象不是函数
我想运行承诺样本https docs angularjs org api ng service q https docs angularjs org api ng service 24q 这是我的代码 angular module test
javascript
angularJS
angularpromise
Ionic 框架resolveLocalFileSystemURL 是异步的吗?
我正在从 AngularJS 控制器调用一个函数 当函数完成执行时 我想在函数调用后打印结果 这段代码在控制器内部 称为on tap count the number of files inside a directory var coun
javascript
angularJS
ionicframework
angularpromise
ngcordova
如何返回完全解决的承诺?
我正在尝试使用 q 编写一些测试 尝试存根 Promise 等 我想知道是否有一种方法可以返回完全解析的 Promise 就像可以使用whenjs when 要返回的东西 之类的东西来做到这一点那将等于这个 function fullyRe
angularJS
angularpromise
这个 Promise 嵌套可以改成链式吗?
这是伪场景 then items then items actions getItems getActions for items apply actions gt items promise promise model lt items
javascript
angularJS
nested
chaining
angularpromise
如何在 AngularJS 中取消 $http 请求?
给定 AngularJS 中的 Ajax 请求 http get backend success callback 如果启动另一个请求 例如相同的后端 不同的参数 取消该请求的最有效方法是什么 这个功能是添加到 1 1 5 版本 https
angularJS
promise
angularpromise
angularhttp
Cancellation
q.all 不适用于多个 Promise
我有以下 q all 调用来解决两个承诺 我检查了所有帖子并尝试了所有其他实施方式 q all 及其相同的情况 var xyzdeffered q defer service1 getServiceDetail1 routeParams i
angularJS
angularjsscope
angularpromise
如何限制角度 $q 承诺并发?
我该怎么做 q all但限制同时执行的承诺数量 我的问题就像如何限制 Q Promise 并发数 https stackoverflow com q 20546373 135114 我希望一次生成的进程不超过 5 个 另一个问题的公认答案是
angularJS
concurrency
promise
angularpromise
在 Angular 中使用 Http 进行 Observable 的好处
从这里 https stackoverflow com a 40135509 462608 https stackoverflow com a 40135509 462608 首先 这个答案描述了 Observables 如何有助于防止向服
angular
http
rxjs
Observable
angularpromise
更新数组对象值
我想更新我保存在工厂中的全局数组中的一些值 我使用 get 方法来获取数据 但 set 函数不知何故无法完成其工作 并且数组中的值不会更新 我缺少什么 factory messageList function var Messages ti
javascript
angularJS
angularpromise
AngularJS 承诺返回空对象
基本上我想做的是从解析承诺的函数调用中分配一些模型值 像这样 value someFun 这是我调用此函数的服务 app factory SomeService function q return someFun function var
angularJS
q
angularpromise
AngularJS then() 的行为与 success()-error() 不同[重复]
这个问题在这里已经有答案了 As the success and error AngularJS 中不推荐使用函数 我正在更新我的代码 将它们替换为then 现在根据我的理解 这两段代码的行为应该是相同的 http get some par
angularJS
angularpromise
ES6 Promise 中的数据只有在我点击它之后才会呈现在页面上?
我在我的应用程序中使用 Ionic 并连接到 Firebase 来提取数据 我在工厂中创建了一个承诺 将数据拉下来 并认为一旦完成 它应该在屏幕上呈现数据 但在触摸屏幕之前我什么也得不到 我没有收到任何错误 数据确实出现了 Factory
Angular 1.6.0:“可能未处理的拒绝”错误[重复]
这个问题在这里已经有答案了 我们在 Angular 应用程序中有一个解决承诺的模式 该模式在 Angular 1 6 0 之前一直为我们提供良好服务 resource get promise then function response d
javascript
angularJS
karmarunner
angularpromise
angularjs16
angularjs 处理 $resource $promise 错误
如果连接到我的 API 时出现错误 有人可以帮我弄清楚如何在 AngularJS 工厂中返回硬编码数据吗 我的硬编码数据位于另一个名为 dataFactory 的工厂中 感谢您的帮助 service factory ScheduleFact
javascript
angularJS
angularresource
angularpromise
angularjs 按顺序链 http post
在我的应用程序中 我将数据存储在本地存储中并在后台触发异步 http post 成功发布后 发布的数据将从本地存储中删除 当 http post 正在进行时 可能会有更多数据添加到本地存储中 因此我需要将 post 排队并按顺序处理它 因为
angularJS
angularpromise
Angular:在配置/运行之前加载环境属性
我正在开发一个 Angular 应用程序 该应用程序有大约 10 个可配置属性 取决于环境和客户端 我在 json 配置文件中拥有这些属性 但这确实很麻烦 每个环境 公司必须有特定的构建 所以我想在应用程序加载时从后端检索这些属性 所以为了
角度异步事件的问题
我的代码循环遍历数组中的 10 个项目 对每个项目发出请求 然后将返回的数据推送到数组中 一切都运行良好 直到 q all line details getDetails function idSet pageNum var page id
javascript
angularJS
angularpromise
异步请求中的 angularjs simple .then 或 $q 服务
我不知道 AngularJS 之间到底有什么区别 q服务和简单 使用 then 异步请求之后 简单的例子 then function InboxService http this getEmails function getEmails r
javascript
angularJS
promise
angularpromise
q
foreach 循环的角度链接承诺
我有一组照片文件需要上传到 Azure 云存储 我使用 foreach 循环调用上传 如下所示 scope savetemplate function var imagePathsArray scope filesimage scope f
angularJS
Azure
angularpromise
ngfileupload
AngularJS 在 forEach 循环中顺序链式 Promise
我一直在进行大量搜索 试图找到解决方案 并相信它最终会兑现我的数据返回时的承诺 但一切都在最后 因为我在每次迭代中都需要它 我有 vm planWeek dinner 我循环遍历每一行 并向其附加 menuType 和 trackMenuI
angularJS
loops
foreach
promise
angularpromise
«
1
2
3
»