Frequency filtering in Angular