GitHub

DaffOrderResultGuard

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.

import { DaffOrderResultGuard } from '@daffodil/cart/routing'
@Injectable()
class DaffOrderResultGuard {
  canActivate(): Observable<boolean>
}

Properties

Name Type Description
canActivate Observable<boolean>