title: Convert $.param in angularjs
body: <p>Before I am using JQuery and I use this to send URL with parameter</p>
  
  <pre><code>window.location = myUrl + $.param({"paramName" : "ok","anotherParam":"hello"});
  </code></pre>
  
  <p>but with angularjS this does not work the same way</p>
  
  <pre><code>$scope.myButton = function() {
      $window.location.open = myUrl + $.param({"paramName" : "ok","anotherParam":"hello"});
  };//Error: $ is not defined
  </code></pre>
  
  <p>can anyone help me how to do this in angularJs</p>