How to use httpparamserializer in Angular2
<p>I am trying to use httpparamserializer in Angular2. I googled a lot but the examples are only for angular1 as shown below.
<a href="https://stackoverflow.com/questions/35756603/how-to-inject-httpparamserializer-for-use-in-templateurl">How to inject $httpParamSerializer for use in templateUrl</a></p>

<p>What would be the syntax to use it in Angular2?</p>