I am trying to enter $httpParamSerializerfor use in templateUrl, but I am having some problems. There is no good documentation or usage examples $httpParamSerializer.
Code example:
angular.module('myApp', ['ngRoute']).config(
function($routeProvider, $locationProvider, $httpProvider) {
$routeProvider
.when('/data/dashboard', {
templateUrl: function(params) {
}
})
})
Things that didn't work out by putting them like this:
function($routeProvider, $locationProvider, $httpProvider,$httpParamSerializer ) {
Also in the module, for example:
angular.module('myApp', ['ngRoute', '$httpParamSerializer']).config(
Any understanding of why this is not working will help.
source
share