Hi for loop in angular 8 showing alphabetical order
--Select Month--
Ankur Rajput
Asked 15-11-2024
766
Answer (1)
Hi,You can try this code, it is working Fine in my project.In Template file you can write below code after constructor.originalOrder = (a: KeyValue, b: KeyValue): number => {
return 0;
} And in html component file you can write below code.write this code in ngfor pipe keyvalue.
Faisal Khan
Asked 08-01-2020
45 Likes
Comments
Need to import KeyValue in .ts file.
import { KeyValue } from '@angular/common';