问题描述:

I have the problem in FF, when page is loading, the directive appears till 2 seconds.

// controller

$scope.socketconection = false;

$rootScope.$on('SocketLost', function (event, data) {

$scope.socketconection = data; // true or false

$scope.$apply();

});

<div ng-cloak class="divs" ng-show="socketconection " ng-hide="!socketconection ">

Lost connection...

</div>

相关阅读:
Top