code implementation is simple enough to display a list of products.
Product list page Page:
<ion-list>
<ion-item *ngFor="let item of orderProductsList">
<order-detail-product [product]="item"></order-detail-product>
</ion-item>
</ion-list>
Product entry Component (mainly some product information):
<div class="p-detail-price-amount">
<div class="p-detail-price">
{{product.price}}
</div>
<div class="p-detail-amount">
{{product.amount}}
</div>
</div>
also introduces all the component classes in AppModule.
is there any mechanism involving Angular or Ionic? Do you have a better understanding of the great gods to advise one or two? I have never studied the principle of using Ionic, before, and I don"t know much about this.
by the way, post the environment of ionic. I wonder if it is useful
cli packages: (/usr/local/lib/node_modules)
@ionic/cli-utils : 1.9.2
ionic (Ionic CLI) : 3.9.2
global packages:
Cordova CLI : 7.0.1
local packages:
@ionic/app-scripts : 3.1.0
Cordova Platforms : none
Ionic Framework : ionic-angular 3.9.2
System:
Android SDK Tools : 26.1.1
ios-deploy : 1.9.2
Node : v8.9.3
npm : 5.5.1
OS : macOS High Sierra
Xcode : Xcode 9.4 Build version 9F1027a