GitHub

DaffCheckoutPlacedOrderGuard

import { DaffCheckoutPlacedOrderGuard } from '@daffodil/checkout/routing'

A routing guard that will redirect to a given url if the placed order is not defined. The url is / by default, but can be overridden with the DaffCheckoutPlacedOrderGuardRedirectUrl injection token.

@Injectable()
class DaffCheckoutPlacedOrderGuard {
  canActivate(): Observable<boolean>
}