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

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -