title: Encode the URL query Param(query value as Some URL) in Angular with Library
body: <p>How to encode the URL query params in Angular. For example I am passing one query params as some URL as below.</p>
  <blockquote>
  <p>http://localhost:8080/homecontroller?siteurl=http://example.com?name=test name&amp;email=test@gmail.com</p>
  </blockquote>
  <p>Due that URL Param(siteurl) URL got broken.
  How to encode with some library without manual encoding?</p>