I'd pull this one indent backwards. The `$state` shouldn't be needed here now that `$state` is attached to the `$rootScope` (i.e. $scope.$state)