angular *ngif element value in an a range of numbers
Solution 1:
You could use a pipe maybe, then your ngIf could be something like:
*ngIf="item.num | between:5:9"
@Pipe({name: 'between'})
export class BetweenPipeimplements PipeTransform {
transform(value: number, start: number, end: number): boolean{
return value > start && value < end;
}
}