腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
如何
对
Rxjs
combineLatest
进行
单元测试
?
angular
、
unit-testing
、
testing
、
rxjs
、
karma-jasmine
我的组件的ngOnInit可以做到这一点 public ngOnInit() { this.ctrSubscription =
combineLatest
(this.route.queryParams我在编写
单元测试
方面还是个新手,所以任何帮助我都将不胜感激。谢谢。
浏览 12
提问于2020-01-06
得票数 0
5
回答
在
RxJS
5.0中找不到‘组合体最近’
rxjs
、
rxjs5
下面的代码会导致使用Observable.
combineLatest
is not a function 5.0的
RxJS
:import '
rxjs
/add/operator/
combineLatest
'; .
combineLatest
([player, spaceS
浏览 1
提问于2016-03-14
得票数 35
回答已采纳
2
回答
如何
在角5中使用
combineLatest
和takeUntil
rxjs
算子
angular5
、
rxjs5
我看到,在角5中,应该以不同的方式使用
rxjs
操作符,并从'
rxjs
/operators'导入,但我有点不清楚它应该
如何
工作。我有这样的东西:
浏览 1
提问于2018-03-13
得票数 0
回答已采纳
3
回答
角NG从5.X升级到6.0,在组合中出现编译错误
typescript
、
rxjs
、
angular6
、
ngrx
我在代码中使用组合参数,并且传递了6个以上的参数。我们刚刚从5.x升级到6.0,这会导致编译错误。这是它的示例代码。 类型'OperatorFunction<string,number,number,string,number,string>‘的参数不能分配给'OperatorFunction’类型的参数。输入'string,number,number,string,number,number,number‘不能分配给键入'string[]’。属性'pop‘的类型是不兼容的。类型'() =>字符串\N‘不能分配给键入
浏览 0
提问于2019-05-14
得票数 0
1
回答
/node_modules/
rxjs
/observable/
combineLatest
"‘(6133)模块read.ts没有导出的成员“
combineLatest
”。.ts(2305)
javascript
、
html
、
angular
、
rxjs
如何
用
combineLatest
组合可观测数据。未定义
combineLatest
import { ActivatedRoute } from '@angular/router';import {
combineLatest
} from '
rxjs
/obse
浏览 1
提问于2019-04-20
得票数 0
3
回答
rxjs
v6中不推荐使用的方法
angular
、
rxjs
、
tslint
我尝试使用
combineLatest
import {
combineLatest
} from '
rxjs
/Observable'; 但我得到了警告
combineLatest
is deprecated如果我遵循声明的the solution provided in the
RxJS
v5.x to v6 Update Guide,here和我写道 import {
combineLatest
} from'
rxjs
'
浏览 79
提问于2019-05-28
得票数 1
回答已采纳
2
回答
角
单元测试
combineLatest
angular
、
unit-testing
、
rxjs
、
jestjs
、
combinelatest
从很长一段时间以来,我开始用
进行
单元测试
。但是,我被困在需要
单元测试
combineLatest
RxJS
操作符的情况下。我的组件如下所示。productService: ProductService this.initialize();
combineLatest
=> { this.
浏览 5
提问于2020-10-30
得票数 2
回答已采纳
2
回答
RXJS
5至6级后发行的
combineLatest
angular
、
dictionary
、
rxjs
、
migration
、
combinelatest
Service.ts文件return this.connectionListStoreService.connections$.pipe( map(([connections]) => connections), this.adapterStoreService.adaptersisPending),
co
浏览 3
提问于2020-11-13
得票数 2
2
回答
无法解决‘
rxjs
-compat/可观察/最近组合’
angular
、
rxjs
我已将我的角度计划升级为我使用过
combineLatest
操作符,但升级后,我面临问题,编译失败。Module not found: Error: Can't resolve '
rxjs
-compat/observable/
com
浏览 0
提问于2018-12-20
得票数 2
2
回答
如何
处理
combineLatest
'project‘参数的弃用(在6.5的
rxjs
中)
rxjs
在
RXJS
6.5中,不推荐使用以下代码中的
combineLatest
签名:import { map, take} from '
rxjs
/operators'; take(3),); tak
浏览 0
提问于2019-08-15
得票数 1
回答已采纳
2
回答
为什么`组合体最近‘返回OperatorFunction<{},number>
angular
、
rxjs
我正在使用
RxJS
6,我的代码中有两个可观察到的
combineLatest
( (val1, val2) => Number(val1) + Number(val2) === 1
浏览 0
提问于2018-05-15
得票数 7
回答已采纳
2
回答
RxJs
subscribeTo.js可观察性检查在Chrome中有效,但在Chrome、MS和Firefox中失败
angular
、
redux
、
rxjs
、
redux-observable
/node_modules/
rxjs
/_esm5/internal/operators/mergeMap.js.MergeMapSubscriber./node_modules/
rxjs
/_esm5/internal/operators/mergeMap.js.MergeMapSubscriber./node_modules/
rxjs
/_esm5/internal/oper
浏览 0
提问于2018-12-13
得票数 1
回答已采纳
2
回答
rxjs
-
如何
强制调用可观察对象?
angular
、
rxjs
combineLatest
([ this.baseball.getTeams(), //call the above code }
浏览 7
提问于2020-09-23
得票数 0
1
回答
如何
在
RXJS
6中减去2个可观测值
angular
、
rxjs
、
angular6
、
rxjs6
、
combinelatest
this.num2 = this.store.select(getNum2Count);在
RXJS
5中,我执行以下命令但是在
RXJS
6中,
combineLatest
被废弃了:不推荐使用静态
combineLa
浏览 0
提问于2018-06-12
得票数 0
回答已采纳
1
回答
如何
从键列表创建ObservableList?
angular
、
firebase
、
angularfire2
name }}</ul> 所以我想我的问题是:
如何
从键列表中获得一个可观察的对象列表?
浏览 3
提问于2017-03-06
得票数 1
回答已采纳
1
回答
管道操作员不支持: Angular[Typescript] -
rxjs
-
combineLatest
angular
、
typescript
、
visual-studio-code
、
rxjs
、
combinelatest
/general-ledger-accounts-store.service'; {} =
combineLatest
浏览 5
提问于2019-11-11
得票数 0
回答已采纳
3
回答
如何
使用
rxJS
的表单控件
对
从服务器加载数据的可观察对象执行筛选?
angular
、
rxjs
、
angular8
我正在尝试使用
rxJS
过滤一个列表,除非我显式强制表单发出第一个值,否则该列表不会被正确过滤。我知道这个问题与以空列表形式从$tags获取最新值有关(尚未从后端加载),但我不知道
如何
解决此问题。 问:
如何
通过使用
rxJS
的表单控件从服务器加载数据时
对
可观察对象执行筛选?
浏览 18
提问于2019-08-15
得票数 0
回答已采纳
3
回答
如何
在@ngrx/effects中等待2个动作
angular
、
typescript
、
ngrx
、
ngrx-effects
、
ngrx-store
如何
并行调度两个效果,等到所有效果都解决后,再调度第三个动作。
浏览 69
提问于2017-06-16
得票数 29
1
回答
无法订阅
combineLatest
的结果
firebase
、
rxjs
、
observable
、
angularfire2
当我更新到
RxJS
6时,我的应用程序坏了。我大部分都在工作,但是这个方法让我很困惑。以前,我们有一组可观察到的flatMapped,然后像这样使用
combineLatest
: .flatMap(observables => { }); 我可以订阅newObservable,并从其他所有的输出中获得最新的输出数组现在我想做这样的事情:
浏览 0
提问于2018-06-21
得票数 8
1
回答
带有
RxJS
的多个HTTP请求的角度(不相互依赖)
angular
、
rxjs
Range6:带有
RxJS
(updatePhone和updateAddress)的多个
RxJS
请求,它们不相互依赖,但两者可以一起执行,也可以不一起执行。案例2:
对
电话字段(phoneNumber或phoneType)所做的更改,我需要调用updatePhone api。我试过了 ifthis.is
浏览 1
提问于2018-08-23
得票数 1
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
如何对机器学习代码进行单元测试?
对 React 组件进行单元测试
深圳软件测试学习:如何进行单元测试?
如何对产品进行细分
python如何利用unittest库和json库进行简单的单元测试
热门
标签
更多标签
云服务器
ICP备案
实时音视频
对象存储
即时通信 IM
活动推荐
运营活动
广告
关闭
领券