ngneat / forms-manager

🦄 The Foundation for Proper Form Management in Angular
https://www.netbasal.com
MIT License
518 stars 29 forks source link

Request for enhance setup and basic usage documentation #19

Closed ekarious closed 3 years ago

ekarious commented 3 years ago

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Performance issue
[ ] Feature request
[x] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behavior

I am currently using the last version of Akita Store. I tried to install and use this package as stated on the README file but i got the following error.

No provider for NgFormManager.

So i added the NgFormManager as a provider in my AppModule. The error disappeared but nothing else happened.

What steps am I missing ?

I saw the package lock is saying the package was made with Angular 9. Can it still work for Angular 8 application ?

Expected behavior

The package work as stated in the README file

Minimal reproduction of the problem with instructions

Install and use the code from the Installation section of the README file.

What is the motivation / use case for changing the behavior?

Can have the advantage of forms in Akita Store.

Environment


Angular version: 8 (core: 8.2.14)

Browser:
- [x] Chrome (desktop) version 85
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX

For Tooling issues:
- Node version: 10.16.3
- Platform:  macOS 10.14.6

Others:
None
NetanelBasal commented 3 years ago

You don't need to add it anywhere. Inject it and use it.

ekarious commented 3 years ago

I injected it into my component like every other services but I got the No provider for NgFormManager error when I tried to use it like in the example. Maybe it is not compatible with my version on Angular (v8)

NetanelBasal commented 3 years ago

It should work. Can you reproduce it on stackblitz, please?

ekarious commented 3 years ago

Here is is: https://angular-ivy-6qwcyv.stackblitz.io I do not have the error here. But nothing seems to happen on the store either.

NetanelBasal commented 3 years ago

Please attach link to the editor.

ekarious commented 3 years ago

Sorry about that: https://stackblitz.com/edit/angular-ivy-6qwcyv?file=src%2Fmain.ts Here it is.

NetanelBasal commented 3 years ago

It works fine. I can't understand what the issue is? Did you read the docs and understand the purpose of this library?

ekarious commented 3 years ago

Then i might not have understood the purpose of this library. Nothing show up in my akita store when i make change in a form plugin in with forms-manager.

NetanelBasal commented 3 years ago

This library doesn't relate to Akita

NetanelBasal commented 3 years ago

The only difference is that you'll not see it in the Redux devtools. Everything else is the same.

ekarious commented 3 years ago

I understand now. I am using the old library for now to see it on Akita, i'll make the switch later on when possible to the new library (this one). Thank you for your time.