ngrx-actions | ️ Actions and Reducer Utilities for NGRX | State Container library
kandi X-RAY | ngrx-actions Summary
kandi X-RAY | ngrx-actions Summary
Actions/reducer utility for NGRX. It provides a handful of functions to make NGRX/Redux more Angular-tastic. Inspired by redux-act and redux-actions for Redux. See changelog for latest changes.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ngrx-actions
ngrx-actions Key Features
ngrx-actions Examples and Code Snippets
Community Discussions
Trending Discussions on ngrx-actions
QUESTION
I am trying to split up an Angular application with multiple modules into multiple (separate) Angular libraries (using this guide), so I can use these libraries within multiple Angular applications.
Currently the project has several modules, for example:
- One for authentication/authorization;
- One containing all kind of table components
- One containing all kind of filter components
- One containing all kind of chart components
- ... (I guess you get the point) ...
I started working on 'converting' the authentication/authorization module into a library, because I expected it would be the hardest and most complicated module.
Right now I am facing some problems which I will explain below.
The module (as it currently exists) makes use of NgRx in combination with ngrx-actions to reduce boilerplate. Like mentioned (in the guide), a library and an app for testing the library are created. I copied all the contents of the existing module into the library folder.
Had to make some adjustments, because the existing module reads some constants from environment.ts and a global.ts which will (probably) not exist when it's used as a library.
Right now my folder structure looks like the following, to give some more context (removed the node_modules):
...ANSWER
Answered 2018-Sep-07 at 07:32The suggestions in the Stack Overflow page and GitHub issue page I mentioned in my earlier post weren't enough to fix this problem, but helped me to 'solve' the problem or getting at least a bit further.
By importing the StoreModule.forRoot({})
another exception will be thrown:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ngrx-actions
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page