Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

ionic maintain order of object properties

<ion-item *ngFor="let item of subscriptionList | keyvalue: descOrder">

//in page.ts file
descOrder (a: any, b: any) {
	if (a.key < b.key) return b.key;
}
 
PREVIOUS NEXT
Tagged: #ionic #maintain #order #object #properties
ADD COMMENT
Topic
Name
9+9 =