TNG / ngqp

Declaratively synchronize form controls with the URL

Home Page:https://tng.github.io/ngqp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Integration with @ngrx/router

Airblader opened this issue · comments

What's your idea?

Let's investigate if it would make sense to integrate with @ngrx/router. A possible solution could be using our RouterAdapter infrastructure to pull state from the store and push state by dispatching actions. This would probably be done as a separate package (@ngqp/ngrx-router-adapter).

I have no experience with @ngrx/router, so this is highly theoretical and needs to be checked for feasability.

Hello @Airblader, do you have some news for this?

I haven't worked with ngrx router yet so unfortunately no, there's no progress. I still think the idea of using a custom router adapter in ngqp might work*, and is something that can probably be prototyped fairly easily to see whether it's feasible.

*) The API here is still a bit opionated towards Angular router by using its types, but that should be easy to work around.