A routing guard that will redirect to a given url if the shipping address on the cart is not defined.
The url is /
by default, but can be overridden with the DaffCartShippingAddressGuardRedirectUrl injection token.
The guard will not wait until the cart has been resolved before performing the check and emitting.
Ensure that the cart is resolved prior to running this guard with the DaffResolvedCartGuard
.
Name | Type | Description |
---|---|---|
canActivate | Observable<boolean> |