GitHub

DaffCartStoreCreditClearErrorsGuard

import { DaffCartStoreCreditClearErrorsGuard } from '@daffodil/cart-store-credit/routing'

A guard that will clear cart state errors before allowing route deactivation.

@Injectable()
class DaffCartStoreCreditClearErrorsGuard {
  canDeactivate(): boolean | UrlTree | Observable<boolean | UrlTree> | Promise<boolean | UrlTree>
}