I've searched everywhere and I've only been able to find the deprecated class-based Canactivate implementation of a route guard that accesses an ngrx store.
Can someone provide an example of a functional route guard that accesses an ngrx store?
I've searched everywhere and I've only been able to find the deprecated class-based Canactivate implementation of a route guard that accesses an ngrx store.
Can someone provide an example of a functional route guard that accesses an ngrx store?
Copyright © 2021 Jogjafile Inc.
The implementation would be the same. The only difference is that you don't inject the store with the constructor, but that you're using the new
injectmethod provided by Angular.