title: How to Check whether the URL contains Id or not?
body: <p>Example : i want to check if url contains id then call abc() function otherwise call def() function.</p>
  
  <p>in angularjs using mvc architecture.</p>