typescript - Angular 4 input range filter Json -
hello creating search pipe in angular4 filter company team size json data range input 0 100. range filter not working, new typescript , angular4, please did basic code not getting logic. the range pipe - @pipe({ name: 'range' }) export class checkboxpipe implements pipetransform { transform(value: any, args?: any): { console.log('args', args); return args ? value.filter(sal => { return sal.team }) : value; } } range input box - 0 <input type="range" min="0" max="100" [(ngmodel)]="team" name="team" /> 100 list filter - <div *ngfor="let joblist of joblist | range: team"> {{joblist.team}} </div> change transform() this, transform(value: any, team?: any): { return (team || team === 0) ? value.filter(sal => { return sal.team }) : value; } see if fixed issue. update: not sure on guess ngmode