This is the code my html page:
<div ng-repeat="(key, value) in list.arrayofStuff | orderBy: 'order' | groupBy: 'code' ">
In the Index.html I've imported the angular-filter:
<script src="lib/angular-filter/dist/angular-filter.js"></script>
But for some reasong, I'm getting this error.
ionic.bundle.js:26794 Error: [$injector:unpr] Unknown provider: groupByFilterProvider <- groupByFilter
Do i have to inject the angular-filter into my controller as well? I'm using Ionic 1. Would appreciate any help. Thanks.
You will have to include the angular-filter module in your apps dependencies.
var myApp = angular.module('myApp', ['angular.filter']);
Source Here