DaffResolveCartGuard

A routing guard that will optionally redirect to a given url if the cart is not properly resolved. It will initiate cart resolution. The url has no default and the guard will not redirect if no value is specified. Specify a redirect path with the DaffResolvedCartGuardRedirectUrl injection token. The guard will wait until the cart has been resolved before performing the check and emitting.

Properties

Name Type Description
canActivate Observable<boolean | UrlTree>
Graycore, LLC © 2018 - 2024. Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.