Looking for some help with AngularJS.
I have an index.html file, along with controllers and partials.
The <body>
tag is located in the index.html. I am trying to set the class for the body using my controller.
After adding a value to $scope.body_class
and referencing it in my index.html like this:
<!doctype html>
<html lang="en" ng-app="myGreatApp">
...
<body ng-class="{body_class}"> {{body_class}} Hi!
Unfortunately, body_class
doesn't return any value.
How can I successfully retrieve a value from body_class
?