腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
从
angular
observable
ngrx
/
store
获取
对象
angular
、
observable
、
ngrx-store
我在从@
ngrx
/
store
获取
对象
时遇到问题。这段代码在很长一段时间内都工作得很好,但现在它似乎被破坏了,我不知道为什么。要存储的
对象
具有以下结构: export class UserInfo { token: string;} 此函数将我的
对象
保存到存储中: saveUserInfo(userInfo: UserInfo) { this.
store
.dispat
浏览 37
提问于2021-10-21
得票数 0
回答已采纳
1
回答
ngrx
如何
从
存储中
获取
嵌套属性值
angular
、
redux
、
ngrx
你好,我是
angular
ngrx
的新手。 请您帮助,因为我不知道如何在
ngrx
,以获得一个嵌套属性值
从
mt reducer。在下面的代码中:如何
从
我的reducer中
获取
this.todoData$.data值?import { Component, OnInit } from '@
angular
/core'; import {
Store
, select } from '@
ngrx
/
浏览 8
提问于2019-08-31
得票数 1
回答已采纳
1
回答
“MemoizedSelector<ICommonAppState,IMenuItemsObject[]>”类型的参数不能分配给“string”类型的参数
angular
、
typescript
我正在使用来自@
ngrx
/
store
的@
ngrx
/
store
来
从
我的商店中选择一个
对象
数组。import {
Observable
} from 'rxjs'; import { Component, OnInit } from '@
angular
navig
浏览 0
提问于2018-06-25
得票数 9
回答已采纳
2
回答
NgRx
/效果不触发减速器
angular
、
typescript
、
angular8
、
ngrx-store
、
ngrx-effects
我刚开始做一个小角度8任务,它使用
NgRx
/
Store
和
NgRx
/Effect。我正在使用一个Book函数
获取
一个getBooks
对象
数组。:
Store
<BooksState>) { } books$:
Observable
<BooksState,我
从
json文件中导入这些
浏览 0
提问于2019-12-20
得票数 2
回答已采纳
2
回答
Angular
+
ngrx
:如何在路由器url遍历时保持存储状态?
angular
、
rxjs
、
store
、
ngrx
/app-routing.module'; import { StoreModule } from '@
ngrx
/
store
'; import { EffectsModule } from '@
ngrx
浏览 2
提问于2018-02-03
得票数 2
回答已采纳
1
回答
Angular
9 createEffect可观察类型错误
angular
、
ngrx
、
ngrx-effects
我不喜欢像by
ngrx
这样的官方指南。我想为auth创建我的第一个存储
对象
。我想,如果我
从
logout逻辑开始,我可以更好地理解逻辑并提高我的技能。/http';import { throwError,
Observable
} from 'rxjs';import { NgModule } fr
浏览 5
提问于2020-05-03
得票数 0
1
回答
如何使用业力
angular
2单元测试
从
服务方法调用获得json数据到测试用例?
json
、
unit-testing
、
angular
、
karma-jasmine
、
angular2-testing
我在调用服务方法时试图
从
json数据中
获取
数据。我得到了一个返回
对象
,但没有得到json数据。我要换哪一部分?'@
angular
/core'; BaseRequestOptions, Httpimport { ActionReducer, Action,
Store
浏览 4
提问于2016-11-11
得票数 1
4
回答
@
ngrx
/存储角为2:无法读取未定义的属性
javascript
、
angularjs
、
angular
、
ngrx
我试着学习@
ngrx
/存储角2- RC4。我已经
从
组件中调用了一个服务,我只是尝试在任何时候记录车辆列表的变化。from '@
angular
/http';import {Injectable} from '@
angular</e
浏览 3
提问于2016-08-18
得票数 2
回答已采纳
3
回答
Angular
NgRx
-如何在我的模板html中查看商店中的
对象
?
angular
、
ngrx
嘿,我在商店中有
对象
,我想在模板中查看该
对象
。我的Ts文件: import { Component, OnInit } from '@
angular
/core';import{
Store
} from '@
ngrx
/
store
'; import { Comment } from '../..
浏览 7
提问于2019-12-13
得票数 1
回答已采纳
1
回答
Angular
NgRX
:如果存储切片为空,则转到数据库
angular
、
ngrx
我使用的是
Angular
NgRX
。我还在学习
NgRX
。在下面的代码中。我正在使用选择器
从
存储中
获取
状态切片。如果数据未定义或长度等于零,则调用dispatch,然后再转到DB
获取
数据。或者,如果存储切片是未定义的,
NgRX
效果是否应该处理转到应用程序接口的逻辑? 在下面的代码中,如果我不订阅选择器并检查它,那么它每次都会调用API端点,这违背了使用状态存储的目的,对吧?import { Component, OnInit, OnDestroy } from '
浏览 32
提问于2020-11-03
得票数 0
2
回答
角2中带有SystemJS和Karma的负载节点模块
angular
、
karma-runner
、
systemjs
{
Store
} from '@
ngrx
/
store
'; let graphs; beforeEach(inject([,我在dev中也遇到了同样的问题,结果是SystemJS不知道在哪里可以找到@
ngrx
/
store
。/
store
' : 'node_modules/@
ngrx<
浏览 8
提问于2016-02-15
得票数 10
回答已采纳
1
回答
Angular
-如何处理类中的可观察
对象
javascript
、
angular
、
rxjs6
、
rxjs-observables
对
Angular
来说是新手。我想学习如何集中管理状态,所以使用了
ngRx
。另外,我以前没有使用过观察值,所以我真的被卡住了。下面是我的代码,购物车存放的是
对象
和数组。我只需要使用reduce()遍历cart,它是
对象
的数组,就可以得到总价格。无论我怎么尝试,它都不起作用。只是补充一下,到目前为止,我的代码工作正常,并且我能够从商店获得购物车数据。import { Component } from '@
angular
/core'; import {
Store
浏览 18
提问于2020-09-02
得票数 1
1
回答
无法在
ngrx
/
store
中使用select
angular
、
ngrx
、
ngrx-store
我正在使用
ngrx
/
store
测试状态管理功能,如下所示。非常奇怪的是我不能在user.selectors.ts中使用select方法。user.actions.tsimport { Action } from '@
ngrx
/
store
'; @Injectable/core/add/operator/sel
浏览 1
提问于2017-08-22
得票数 1
1
回答
Ngrx
存储
获取
错误,因为类型上不存在属性“”ofType“”
ngrx
、
angular7
、
rxjs6
、
ngrx-store
、
ngrx-effects
我正在尝试开发一个使用
ngrx
/
store
获取
错误的应用程序。无法解决此问题。有谁能帮我吗?/core';import { Router } from '@
angular
/router'; import { Actions, Effect, ofType } from '@
ngrx
/e
浏览 14
提问于2019-01-18
得票数 14
回答已采纳
1
回答
Angular
2/4 redux框架
ngrx
你能告诉我在
angular
中ng-redux和
ngrx
-
store
库有什么区别吗?我想在我的应用程序中实现redux,但不确定使用哪个库,以及它的好处是什么?
浏览 0
提问于2017-04-24
得票数 1
1
回答
为什么我的应用程序状态不能渲染到
angular
Ngrx
中的应用程序
javascript
、
angular
、
ngrx
Todo_List是
ngrx
存储中的一个
对象
,我想呈现它的列表属性,它是一个数组import { Component,OnInit } from '@
angular
/core';import { AppState } from './
ngrx
.model'; import
浏览 2
提问于2020-05-18
得票数 0
3
回答
从
Angular
5迁移到
angular
7
angular
、
rxjs
、
store
、
angular7
我已经
从
angular
5迁移到了
Angular
7。在那之后,我的RxJs操作出现了问题,比如
observable
和我的@
ngrx
/
store
。下面是我的错误: ERROR in node_modules/@
ngrx
/
store
/src/actions_subject.d.ts(2,10): error TS2305: Module C:/Users/@
ngrx
&
浏览 2
提问于2018-12-17
得票数 1
2
回答
ngrx
商店4选择不工作
angular
、
ngrx-store-4.0
我一整天都在努力用
ngrx
/
store
4开发我的专业应用程序。在经历了很多不成功的时间后,我决定创建一个新的绝对最小的应用程序,以检查我是否还有其他问题。": "^4.2.4", "@
ngrx
/
store
": "^4.0.2", "@
ngrx
/<e
浏览 0
提问于2017-08-15
得票数 8
回答已采纳
1
回答
NgRx
:
从
存储区
获取
数据,但未定义
angular
、
typescript
、
ngrx
、
ngrx-store
、
ngrx-effects
我是
NgRx
的新手,正在尝试了解它是如何工作的。我创建了一个应用程序-基于
Angular
6,Firebase和
NgRx
的简单商店列表。我在名为Product的集合中添加了几个项,并尝试通过
ngrx
模式
获取
它们。/core';import { Effect, Actions } from '@
ngrx
/ef
浏览 1
提问于2018-10-17
得票数 6
回答已采纳
1
回答
node_modules/@
ngrx
/core/src/operator/enterZone.d.ts(1,10):
ngrx
存储中出错
angular
、
ngrx-store
/rxjs/
Observable
"‘没有导出的成员“TS2305”。/rxjs/
Observable
"‘没有导出的成员“TS2305”。/rxjs/
Observable
"‘没有导出的成员“TS2305”。node_ '"E:/work/nrgx-
store
2/my-dream-app/node_modules/@
angular
/core&
浏览 36
提问于2019-03-19
得票数 1
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
NgRx 10引入组件本地状态管理包
最受欢迎的10大Angular技巧
彻底搞懂RxJS中的Subjects
Kotlin,RxJava与RxAndroid混合开发
Android 响应式编程 RxJava2 完全解析
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券