I want to be able to change the background color of depending on what the current path is.
I tried doing it by checking $location.path() wh
One way to style the body is to add ng-view as a body attribute, then use ng-class or ng-style (I did not use any other option to date).
For example:
My Site
In this example, the login class is applied to the body only when loginBody is a true value in the current scope, set in a login controller.
This is much less flexible than the approach offered by @ryeballar. It may just be enough in some cases.