title: Angular - ng-class based on state
body: <p>Any specific reason why my code is not working?</p>
  
  <pre><code>&lt;li ng-class="{active : $state.includes('products')}"&gt;
  </code></pre>
  
  <p>router code:</p>
  
  <pre><code>.state('products', {
    url: '/products',
    templateUrl: 'app/components/views/products/products.html',
    controller: 'productsController',
    controllerAs: 'products'
  })
  </code></pre>