[AngularJS] Re: multiple pipes and does not work

2019-07-25 Thread Dev C
Hello Sendar This helps , also array has name and description, is it possible to search in both rather just in one name ? On Thursday, July 25, 2019, Sander Elias wrote: > Hi Dev, > > Your search pipe expects an object with at least the property name in each > row, and your sort expects an

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) {

[AngularJS] Re: multiple pipes and does not work

2019-07-24 Thread Sander Elias
Hi dev, Can you put a sample on stackblitz?Iit's hard to help you without seeing your code. Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it,

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

[AngularJS] Re: multiple pipes and does not work

2019-07-24 Thread Tito
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 it sorts. > > Thanks > > -- You received this message because you