Re: [AngularJS] Re: multiple pipes and does not work

2019-07-24 Thread Sander Elias
Hi Dev, Your search pipe expects an object with at least the property name in each row, and your sort expects an array that contains only strings. Make sure you have those in sync. I changed them a bit, so they now accept a property's name: @Pipe({name: "sort"}) export class ArraySortPipe

Re: [AngularJS] Re: multiple pipes and does not work

2019-07-24 Thread Dev C
Hello Sander, below is the code for sort pipe. import {Pipe, PipeTransform} from '@angular/core' @Pipe({ name: "sort" }) export class ArraySortPipe implements PipeTransform { transform(array: Array, args: string): Array { array.sort((a: any, b: any) => { console.log("22") if (a < b) {

Re: [AngularJS] Re: multiple pipes and does not work

2019-07-24 Thread Dev C
angular 6 On Wed, Jul 24, 2019 at 11:06 PM Tito wrote: > is this for AngularJS or angular ? > > On Wednesday, July 24, 2019 at 10:19:07 AM UTC-7, Dev C wrote: >> >> >> >> I have above .html file where in sort array does not work, I mean I put >> console.log in it but it never prints nor