I still experience the same issue in 4.1, however the error thrown is a little different:
TypeError: Cannot call method 'find' of undefined at Object.instance.query (http://127.0.0.1:48380/app/factories/AppointmentFactory.js:112:29) at Object.<anonymous> (http://127.0.0.1:48380/app/factories/AppointmentFactory.js:181:29) at Object.invoke (http://127.0.0.1:48380/public/js/angular.js:3720:17) at http://127.0.0.1:48380/public/js/angular.js:3562:37 at getService (http://127.0.0.1:48380/public/js/angular.js:3683:39) at invoke (http://127.0.0.1:48380/public/js/angular.js:3710:13) at Object.instantiate (http://127.0.0.1:48380/public/js/angular.js:3731:23) at http://127.0.0.1:48380/public/js/angular.js:6848:28 at link (http://127.0.0.1:48380/public/js/angular-route.js:907:26) at nodeLinkFn (http://127.0.0.1:48380/public/js/angular.js:6271:13) <div class="container ng-scope" data-ng-view="">
Am I doing something wrong?
Try as shown below,
It works fine for me.
I normally use the API reference, and there, its said that the conditions hash is optional:
Maybe the docs should be updated/fixed?