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
Post a Comment