http - Angularjs on click refresh view to get latest json data -
i using angularjs , need refresh view not whole page. how can using angularjs.
i have used $http
service data json file , that's why need update cache latest values json.
$http.get('json/dashboard-home.json').success(function(data) { $scope.campaigns = data; });
currently if changed value in json file it's not reflecting on page when refresh page. every time need clear cache view latest value.
you can disable cache of $http prevent behavior.
$http({ // ... cache: false, // ... });
Comments
Post a Comment