GitHub

DaffEmptyCartResolver

Resolves the cart before navigation. Redirects to a given url when a failure occurs during Cart Load. This url is / by default but can be overridden with the DaffCartResolverRedirectUrl injection token. This resolver also redirects to a different url when the cart is empty after successfully loading. This url is also / by default, but can be overridden with the DaffEmptyCartResolverRedirectUrl

import { DaffEmptyCartResolver } from '@daffodil/cart/routing'
@Injectable()
class DaffEmptyCartResolver {
  resolve(): Observable<DaffCart>
}

Properties

Name Type Description
resolve Observable<DaffCart>