I'm trying to pass a dependency on my module to use a unique filter, I need to filter names in my Views
. What happens is this: when I do this, in my controller, without creating routes on my system, that's for sure.
angular.module("myApp,['ui.filters']")
.controller("papaRoca",function($scope,Data, $location).
You can see that I put the ['ui.filters']
dependency. Without the routes in my system it works, but when I put the routes for page navigation, if I put this dependency in my controller ['ui.filters']
, of the error.
Why does this happen? When creating routes on the system are the dependencies created in another location?