**$scope.Load = false;** div ng-controller="Soket_Control"> <div style="text-align: center; margin-top: 200px;"> <img ng-show ="Load" src="../WDizayn_Angular_Tool/Images/Load.gif" /> </div> </div> function Soket_Control($scope) { $scope.Load = true; var ws = new WebSocket('ws://localhost:8181/consoleappsample', 'my-protocol'); ws.onmessage = function (evt) { alert("2"); }; ws.onopen = function () { **$scope.Load = false;** }; ws.onclose = function () { alert("3"); }; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)