Could somebody please tell me where this is going wrong? I basically have a simple check of a value - if the value is true, it should set the class to headerOn. If false, it should be headerOff. Easy. Here's the code:

```
<div ng-class="headerCheck ? 'headerOn' : 'headerOff'">

```

And the function that I hit:

```
$scope.headerControl = function() {

    $scope.headerCheck = true;

    console.log($scope.headerCheck);
}

```

I can confirm that the log is true. Any ideas why this isn't working for me?