How to inject $httpParamSerializer for use in templateUrl
<p>I am trying to inject <code>$httpParamSerializer</code> for use in <code>templateUrl</code> but I am having some issues.  There isn't any good documentation and examples of how to use <code>$httpParamSerializer</code>.</p>

<p>Example code:</p>

<pre><code>angular.module('myApp', ['ngRoute']).config(
  function($routeProvider, $locationProvider, $httpProvider) {
    $routeProvider
        .when('/data/dashboard', {
            templateUrl: function(params) {
             //NEED TO USE IT HERE
            }
        })
})
</code></pre>

<p>Things that didn't work, placing it like this:</p>

<p><code>function($routeProvider, $locationProvider, $httpProvider,$httpParamSerializer ) {
</code></p>

<p>Also in the moduler, like this:</p>

<p><code>angular.module('myApp', ['ngRoute', '$httpParamSerializer']).config(</code></p>

<p>Any insight why this isn't working would help.</p>