我正在尝试让我的Angular应用程序与NgRX商店配合得很好,但我遇到了一些问题: // app.module.ts import { StoreModule } from '@ngrx/store'; import { fileReducer } from './state/file-state/file-state.reducer' imports: [ ... StoreModule.forRoot({ fileReducer }) ], // file-state.actions.ts ...
那么我如何更新ngrx/store,然后将数据传递给前端视图首先,我创建了一个简单的应用程序angular表单,它使用后端node.js在数据库中存储和检索数据现在我想在我的应用程序中引入ngrx/store,每次我在数据库中插入新记录更新ngrx/store和ngrx/store更新视图时,ngrx/ store都会从数据库中获取数据并将其存储并显示在前端视图上...
The Store uses the reducers to return new immutable composed slices of state. Such immutable data returned from the Store can be used to feed in the components'@Input()parameters. By using the Store, you're sure that all components'@Input()parameters are immutable and that theOnPushchange de...
example-app- Example application utilizing @ngrx libraries, showcasing common patterns and best practices. Try it onStackBlitz. Migration Please readcontributing guidelines here. Backers Thank you to all our backers! 🙏 [Become a backer]
Note: Stackblitz is giving me some errors, so I'm pasting an example jest test import { ComponentStore } from '@ngrx/component-store'; import { Observable } from 'rxjs'; describe('test', () => { interface State { foo: string; bar: string; baz: string; } class FooBarStore extends...
Minimal reproduction of the bug/regression with instructions: Unfortunately, it would be pretty tough to recreate the issue in a stackblitz but the short version is we have a loading flag in our store that does not trigger change detecti...
example-app chore(deps): Organize dependencies for better stackblitz support (ngr… Feb 19, 2018 modules build: Add remaining unit tests to Bazel (ngrx#845) Feb 20, 2018 tools chore(build): Add Store unit tests to Bazel (ngrx#836) Feb 19, 2018 .angular-cli.json feat(Store): Add injec...
I found you'd have contributions more eager to help if they can work with some actual code that has the error:https://stackblitz.com/is an awesome tool to quickly create an project so that it can be looked at. While creating that project you might actually find the source of the issue...
example-app chore(docs): Add link to Stackblitz version of example-app (ngrx#902) Mar 12, 2018 modules refactor(Schematics): Clean up and remove unused imports (ngrx#914) Mar 16, 2018 tools chore(build): Add Store unit tests to Bazel (ngrx#836) Feb 19, 2018 .angular-cli.json feat(...