title: Angular JS assign class to body tag depending on view displayed?
body: <p>I have an angular application similar to this:</p>
  
  <pre><code>&lt;html&gt;
     &lt;body ng-app="my-app" ngcloak ng-controller="MainCtrl"&gt;
  
       ...stuff...
  
          &lt;!-- Add your site or application content here --&gt;
      &lt;div ng-view=""&gt;&lt;/div&gt;
  
       ....
  </code></pre>
  
  <p>And the view is set by Routes:</p>
  
  <pre><code> .when('/maps', {
              templateUrl: 'views/maps.html',
              controller: 'MapsCtrl'
          })
  </code></pre>
  
  <p>It works fine.  What I'd like to know is how I can get a class from the current location, using the above example, assign a class "maps" to the body tag for page-specific CSS.</p>