Angular $rootScope.$on Undefined

前端 未结 1 1484
醉酒成梦
醉酒成梦 2021-01-18 05:11

I have the following in a controller.

$rootScope.$on(\'progressbarEvent\', function (event, data) {
    $rootScope.progresscurrent = data.currentprogress;
           


        
相关标签:
1条回答
  • 2021-01-18 05:30

    The order of dependencies has to be consistent with the array it was declared in:

    app.controller('indexcontroller', ['$rootScope','$scope', '$http', 'dataFactory',
       function ($rootScope, $scope, $http, dataFactory) {
    
    0 讨论(0)
提交回复
热议问题