title: Angular - add class to button if on page
body: <p>If the user is on the create-projects page I want to add a CSS class to the 'logo' button and remove it if its not on that page this is what I have currently. Does anyone know a way of doing this please?</p>
  
  <pre><code>angular.module('')
      .config(function($stateProvider) {
          $stateProvider
              .state('create-project', {
                  url: '/create-project',
                  parent: 'layout',
                  views: {
                      'content@': {
                          templateUrl: 'dashboard/views/projects/create.html',
                          controller: 'CreateProjectController'
                      },
                      'title@layout': {
                          template: 'Create a project'
                      },
  
                      'class@layout': {
                          template: 'className'
                      }
                  }
              })
          ;
      });
  
  
  &lt;md-button class="md-icon-button logo" aria-label="Dashboard" ui-sref="projects"&gt;
      &lt;md-icon class="icon-logo"&gt;&lt;/md-icon&gt;
  &lt;/md-button&gt;
  </code></pre>