Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: scope.filter is not a function #80

Open
casper123 opened this issue Apr 11, 2016 · 0 comments
Open

Error: scope.filter is not a function #80

casper123 opened this issue Apr 11, 2016 · 0 comments

Comments

@casper123
Copy link

Hi,
I'm using filter bar for on of my ionic project, however when I search an item, i get this error

ionic.bundle.js:25642 TypeError: scope.filter is not a function
    at Scope.scope.filterItems (ionic.filter.bar.js:559)
    at filterItems (ionic.filter.bar.js:132)
    at ionic.bundle.js:31021
    at completeOutstandingRequest (ionic.bundle.js:18706)
    at ionic.bundle.js:18978

This is my filter bar instance

$ionicFilterBar.show({
      filter: '',
      items: $scope.productList,
      filterProperties: 'itemDetails.item_title',
      update: function (filteredItems, filterText) {
        console.log(filterText);
        $scope.productList = filteredItems;
        if (filterText) {
          console.log(filterText);
        }
      }
    });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant