Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cart,order): set redirect token default value with factory #2780

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { InjectionToken } from '@angular/core';

export const DaffCartBillingAddressGuardRedirectUrl = new InjectionToken<string>('DaffCartBillingAddressGuardRedirectUrl');
export const DaffCartBillingAddressGuardRedirectUrl = new InjectionToken<string>('DaffCartBillingAddressGuardRedirectUrl', { factory: () => '/' });
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ import { InjectionToken } from '@angular/core';
/**
* The path to which the user should be redirected if the cart has no items when {@link DaffCartItemsGuard} is invoked.
*/
export const DaffCartItemsGuardRedirectUrl = new InjectionToken<string>('DaffCartItemsGuardRedirectUrl');
export const DaffCartItemsGuardRedirectUrl = new InjectionToken<string>('DaffCartItemsGuardRedirectUrl', { factory: () => '/' });
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ import { InjectionToken } from '@angular/core';
/**
* The path to which the user should be redirected if the cart has no items when {@link DaffCartInStockItemsGuard} is invoked.
*/
export const DaffCartInStockItemsGuardRedirectUrl = new InjectionToken<string>('DaffCartInStockItemsGuardRedirectUrl');
export const DaffCartInStockItemsGuardRedirectUrl = new InjectionToken<string>('DaffCartInStockItemsGuardRedirectUrl', { factory: () => '/' });
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { InjectionToken } from '@angular/core';

export const DaffCartOrderResultGuardRedirectUrl = new InjectionToken<string>('DaffCartOrderResultGuardRedirectUrl');
export const DaffCartOrderResultGuardRedirectUrl = new InjectionToken<string>('DaffCartOrderResultGuardRedirectUrl', { factory: () => '/' });
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { InjectionToken } from '@angular/core';

export const DaffCartPaymentMethodGuardRedirectUrl = new InjectionToken<string>('DaffCartPaymentMethodGuardRedirectUrl');
export const DaffCartPaymentMethodGuardRedirectUrl = new InjectionToken<string>('DaffCartPaymentMethodGuardRedirectUrl', { factory: () => '/' });
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { InjectionToken } from '@angular/core';

export const DaffResolveCartGuardRedirectUrl = new InjectionToken<string>('DaffResolveCartGuardRedirectUrl');
export const DaffResolveCartGuardRedirectUrl = new InjectionToken<string>('DaffResolveCartGuardRedirectUrl', { factory: () => '/' });
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { InjectionToken } from '@angular/core';

export const DaffCartShippingAddressGuardRedirectUrl = new InjectionToken<string>('DaffCartShippingAddressGuardRedirectUrl');
export const DaffCartShippingAddressGuardRedirectUrl = new InjectionToken<string>('DaffCartShippingAddressGuardRedirectUrl', { factory: () => '/' });
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { InjectionToken } from '@angular/core';

export const DaffCartShippingMethodGuardRedirectUrl = new InjectionToken<string>('DaffCartShippingMethodGuardRedirectUrl');
export const DaffCartShippingMethodGuardRedirectUrl = new InjectionToken<string>('DaffCartShippingMethodGuardRedirectUrl', { factory: () => '/' });
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { InjectionToken } from '@angular/core';

export const DaffCartResolverRedirectUrl = new InjectionToken<string>('DaffCartResolverRedirectUrl');
export const DaffCartResolverRedirectUrl = new InjectionToken<string>('DaffCartResolverRedirectUrl', { factory: () => '/' });
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { InjectionToken } from '@angular/core';

export const DaffEmptyCartResolverRedirectUrl = new InjectionToken<string>('DaffEmptyCartResolverRedirectUrl');
export const DaffEmptyCartResolverRedirectUrl = new InjectionToken<string>('DaffEmptyCartResolverRedirectUrl', { factory: () => '/' });
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { InjectionToken } from '@angular/core';

export const DaffPlacedOrderGuardRedirectUrl = new InjectionToken<string>('DaffPlacedOrderGuardRedirectUrl');
export const DaffPlacedOrderGuardRedirectUrl = new InjectionToken<string>('DaffPlacedOrderGuardRedirectUrl', { factory: () => '/' });
Loading