Angular 4 ngModel between components
问题 I'm trying to filter my products by categoryId value. Products are listing in product-component. I have a categoryFilter pipe that filters Products and returns list of Product. This pipe requires categoryId but this value is in category-component scope. So my product-component cannot access it. What should I do to make it work? product-component.html <ul class="list-group"> <li class="list-group-item" *ngFor="let product of products |productFilter:filterText|categoryFilter:filterCategory">