title: ng-class condtionally and $location path Angular
body: <p>here is my site for example : <code>example.com</code><br>
  and the conditions are  :    </p>
  
  <p>i want to add class when user in these location :<br>
  First condiotion: <code>example.com/#</code> wihch is user click on something without link like href="#"<br>
   and<br>
  Second :<code>example.com/Cartable</code>  </p>
  
  <p>Here is my little code :  </p>
  
  <pre><code>$scope.isActive = function (route) {
          return route === $location.path();
  
      }    
  </code></pre>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>ng-class="{cartable:isActive('/Cartable')}" 
  </code></pre>
  
  <p>it's working , but how can i add two url , something like this:  </p>
  
  <pre><code>ng-class="{cartable:isActive('/Cartable', '/#')}"   
  </code></pre>
  
  <p>thanks</p>