GitHub

DaffOrderResultGuard

import { DaffOrderResultGuard } from '@daffodil/cart/routing'

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

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