A routing guard that will ensure that the cart has only in-stock items before allowing activation of a route.
If the cart has any out of stock items in it, then `canActivate` will emit `false` and redirect to a specific path.
The url is `/` by default but can be overridden with the DaffCartInStockItemsGuardRedirectUrl
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 |
---|---|---|
canActivateChild | Observable<boolean> | |
canActivate | Observable<boolean> |