title: Is there a way to determine in angular.js if there are url query parameters present?
body: <p>In angular routes, you can parse the url arguments into $routeParams.  However, I need to know what's the best way to see if they exist.</p>
  
  <p>For example, I have several <code>$routeParams</code> from different parts of the URL however, all I want to know is whether any url params exist (if the ? exists and parameters after). I understand, I can just do a search for the ? but wanted to know if there was a way within angular.</p>
  
  <p>Here's my code:</p>
  
  <pre><code> $routeProvider.when('/sports/:sport_id/:args?', 
  </code></pre>
  
  <p>sport_id and all the args will be combined in $routeParams.  However I just want to know if args exist. (the query parameters)</p>