-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
order templates update to angular 9 - probably not intended changes f…
…rom false additional merge - should be ommited?
- Loading branch information
Showing
5 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
...lates/exports/basket/lazy-create-order-template/lazy-create-order-template.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<wt-lazy | ||
*ishFeature="'orderTemplates'" | ||
[location]="componentLocation" | ||
[inputs]="{ products: products, class: class }" | ||
></wt-lazy> |
18 changes: 18 additions & 0 deletions
18
...mplates/exports/basket/lazy-create-order-template/lazy-create-order-template.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; | ||
|
||
import { Product } from 'ish-core/models/product/product.model'; | ||
|
||
@Component({ | ||
selector: 'ish-lazy-create-order-template', | ||
templateUrl: './lazy-create-order-template.component.html', | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
// tslint:disable-next-line:component-creation-test | ||
export class LazyCreateOrderTemplateComponent { | ||
@Input() products: Product[]; | ||
@Input() class?: string; | ||
componentLocation = { | ||
moduleId: 'ish-extensions-order-templates', | ||
selector: 'ish-basket-create-order-template', | ||
}; | ||
} |
5 changes: 5 additions & 0 deletions
5
...ucts/lazy-product-add-to-order-template/lazy-product-add-to-order-template.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<wt-lazy | ||
*ishFeature="'orderTemplates'" | ||
[location]="componentLocation" | ||
[inputs]="{ product: product, displayType: displayType, quantity: quantity, class: class }" | ||
></wt-lazy> |
20 changes: 20 additions & 0 deletions
20
...oducts/lazy-product-add-to-order-template/lazy-product-add-to-order-template.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; | ||
|
||
import { Product } from 'ish-core/models/product/product.model'; | ||
|
||
@Component({ | ||
selector: 'ish-lazy-product-add-to-order-template', | ||
templateUrl: './lazy-product-add-to-order-template.component.html', | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
// tslint:disable-next-line:component-creation-test | ||
export class LazyProductAddToOrderTemplateComponent { | ||
@Input() product: Product; | ||
@Input() displayType?: string; | ||
@Input() quantity: number; | ||
@Input() class?: string; | ||
componentLocation = { | ||
moduleId: 'ish-extensions-order-templates', | ||
selector: 'ish-product-add-to-order-template', | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters