var orderApp = angular.module('orderApp', []); orderApp.controller('orderCtrl', function ($scope) { $scope.inputParams = { "shopList": { "22": { "name": 'Пятерочка', "isTrue": true }, "222": { "name": 'АШАН', "isTrue": false }, "333": { "name": 'тест', "isTrue": true } } }; }); <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script> <div ng-app="orderApp" ng-controller="orderCtrl"> <ul> <li ng-repeat="(item, key) in inputParams.shopList | filter:{isTrue:true}" > {{key.name}} </li> </ul> </div> How to filter an object by isTrue parameter?
In general, the task is that I will have 2 lists from one array, the first will be the Product available and the second will not
filterworks only with arrays. If you want to use it here, make a shopList from your object - an array. Either filter the javascript in the code and use the already prepared array in the markup - GrundyisTrue: trueparameter and the second data array with theisTrue: falseparameter. Go through in html - display the user. - mix