Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
如何从基于回调的 API 创建 AngularJS Promise
wifiservice js angular module app WifiServices factory WifiService function var unique array angular fromJson function w
angularJS
angularpromise
D3.js 如何将我的真实数据合并到饼图中
我是 D3 和数据可视化的新手 在加载真实数据时遇到一些问题 您将在以下部分中找到我的代码 现在我有一些数据存储在数组中 现在我想做的是将数据库中的实际数据存储到饼图中 另外 如果我这样做 var mydata d3 json mydata
aspnet
json
d3js
datavisualization
angularpromise
在 AngularJS 中的控制器之间共享数据
我使用以下工厂从 API 获取数据并将其存储到名为 apiData 的本地变量中 app factory MyFactory function resource q var apiData var service var resource
javascript
angularJS
angularresource
angularpromise
angularservices
Typescript 异步/等待和角度 $q 服务
新的 TypeScript 异步 等待功能使用 ES6 Promise AngularJS 使用 q服务承诺与界面略有不同 有没有办法使用 TypeScript 异步 等待功能 q服务承诺 你可以让它像这样工作 angular module
javascript
angularJS
typescript
asyncawait
angularpromise
吞没的消息:错误:未捕获(承诺):[对象未定义]
我的登录组件会短暂显示 然后被有关承诺中未定义对象的错误消息删除 这是承诺的定义 static init Promise
javascript
angular
promise
angularpromise
Keycloak
第一个承诺完成后,Angular $q.all 被调用
我试图使用 q all 等待所有承诺都得到解决 但它是在第一个承诺完成后调用的 我做错了什么 function sendAudits audits var promises scope sendAudits progress 0 angul
javascript
angularJS
promise
angularpromise
Promise 链与 Promise.all
我的任务是使用量角器输入通知日期 我需要在输入之前清除内容 所以我想出了这个代码 this Then I should enter Notification Date gt const d new Date return orderChec
selenium
protractor
cucumber
angularpromise
使用 TypeScript 返回 AngularJS $q 承诺
我有一个服务 它用返回延迟对象的函数包装 http 我的界面 export interface MyServiceScope get ng IPromise lt gt 我的课 export class MyService implemen
angularJS
typescript
angularpromise
deferred
AngularJS:在这种情况下如何使用 $q Promise 功能来等待数据准备好?
我有一个控制器它在 a 中启动 API 调用Factory 目前我开始通话 然后在通话后我有一个函数来检查Array 但是我不确定如何在收集数据时强制它在这里等待 因此需要某种 q执行 正如您在下面的屏幕截图中看到的 vs tickers返
如何在角度2中等待函数完成执行?
下面是我的代码 我想要login and authenticated 等待的函数getProfile 函数来完成其执行 我尝试了多种方法 例如承诺等 但无法实现 请建议我解决方案 import Injectable from angular
javascript
angularJS
angular
angularpromise
AngularJS 两个 http get 在一个控制器中会出现问题
我在一个控制器中有两个 http GET 有时它可以工作 并且其中两个正在工作 有时只有一个 http Get 可以工作 有时它们都没有显示 有什么建议么 controller nextSidorAdminCtrl function sco
javascript
angularJS
angularpromise
angularhttp
ngcontroller
如何使用返回http承诺的Angular 2服务
我在这里遇到了 Angular 2 的问题 我使用返回承诺的服务 但是当我尝试检索响应时出现错误 我读到了这个这个静态问题 https stackoverflow com questions 40009397 angular 2 http
javascript
angular
ionic2
undefined
angularpromise
$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
1
2
3
»