filter $scope Error: Unknown provider: $scopeProvider <- $scope <- transformSensorStatusFilter
The $scope
is available only for controllers and the link function of directives. This is why the filter cannot find it. Maybe you meant $rootScope
?
I found that "this" references local $scope (inside filter function.) Not sure if this is safe way of accessing it tho.