ng-repeat=”product in data.activeProducts = (productList | filter: {brand_id: searchedId})”
Pay attention to the data.activeProduct part. Since ng-repeat creates another scope, if you want to use the filtered list outside of ng-repeat, append it to an outside object.