javascript - $scope.$apply not updating on page refresh -


i have subscribed signalr events. on notification updating textbox using $scope.$apply. works fine. if page refreshed using f5 or browser reload button, receiving signalr events but, textbox not getting updated.

i missing anything?

on notification

   signalrhub.client.notify = function (data) {          $scope.$apply(function () {              $scope.upgraderesult += data.message;         });      } 

what browser version using? if testing using ie, f5/refresh retrieve cached page unless change settings under internet options->general tab->browsing history subsection->settings default- check versions of stored pages selected 'automatic'. modify 'every time visit page' - should bypass caching page , changes made on page should reflect. although may not resolve impediment if caching not issue, useful tip consider nevertheless avoid caching problems.


Comments

Popular posts from this blog

angular ui router - 10 digest iterations reached in angularjs when using $state.go -

symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -

excel vba add hyperlink to shape in group -