title: How to know if user has entered invalid $routeparams
body: <p>I can access query url params using</p>
  
  <pre><code>$scope.$on('$routeUpdate', function () {    
      var id = $routeParams.id
     //check if user has entered any params other than "id".
     //if yes do someting
  });
  </code></pre>
  
  <p>I need to prevent user from entering params other than "id". </p>
  
  <p>eg: </p>
  
  <p><code>example.com/?id="something"</code> is accepted</p>
  
  <p><code>example.com/?junk="something"</code> should be rejected.</p>
  
  <p>Is there any way for this?</p>