filter $scope Error: Unknown provider: $scopeProvider <- $scope <- transformSensorStatusFilter

后端 未结 2 1747
走了就别回头了
走了就别回头了 2021-02-18 22:32
marsApp.filter(\"transformSensorStatus\", function($scope) {
    return function(input, options) {

    var sensorReading = ( input ? ( input / 1000) : 0);
    var senso         


        
2条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-18 22:47

    I found that "this" references local $scope (inside filter function.) Not sure if this is safe way of accessing it tho.

提交回复
热议问题