Wednesday, November 8, 2017

The orderBy by pipe which comes with Angular and mfDefaultSorter do not play nicely together.

<tr *ngFor="let person of people | orderBy: 'BirthDate'">

 
 

...probably needs to be replaced by:

<tr *ngFor="let person of people">

 
 

...to fix bust column sorting. Do the initial upfront sort on the TypeScript side like this.

No comments:

Post a Comment