title: How to call function before loading a view?
body: <p>I want to call a javascript function before loading view content because
  I want to add a class "light_theme" in the body tag. 
  So I have to add this class before loading the view so that everything can look perfect.</p>
  
  <p>But at the moment AngularJs ads class in body after view is loaded that makes thing little odd.</p>
  
  <p>For example by default theme background color is black but after adding that class it suddenly changes background color and other color schemes suddenly that does not look well. </p>
  
  <p>So that's why I wanted to add that class before view is loaded.
  I researched but could not get any good solution.</p>
  
  <p>If this is really possible?</p>