How to inject $httpParamSerializer for use in templateUrl
问题 I am trying to inject $httpParamSerializer for use in templateUrl but I am having some issues. There isn't any good documentation and examples of how to use $httpParamSerializer . Example code: angular.module('myApp', ['ngRoute']).config( function($routeProvider, $locationProvider, $httpProvider) { $routeProvider .when('/data/dashboard', { templateUrl: function(params) { //NEED TO USE IT HERE } }) }) Things that didn't work, placing it like this: function($routeProvider, $locationProvider,