1

I develop an application with AngularJS, when I add a new element called a POLCOM, the list of POLCOM remains the same without the new item. this problem appears only in IE11 in chrome no problem.

this is my service:

listPOLCOM : function(succes,error) {
  return $http.get('/polcom').then(succes,error);
}

this my controller:

servicePolcom.listPOLCOM(
    function successCallback(response) {
        $scope.listPolcom = response.data;
    }, function errorCallback(response) {
        alert("error");
    });

this is my HTML:

<tr data-ng-repeat="polcom in listPolcom">

        <td>{{ polcom.libelle }}</td>
        <td>{{ polcom.startDate }}</td>
        <td>{{ polcom.endDate }}</td>
 </tr>
Phil
  • 157,677
  • 23
  • 242
  • 245
  • Are there any errors in IE's console? Maybe try adding some cache busting, something like `$http.get('/polcom', { params: { _: Date.now() } }).then(success, error)` – Phil Oct 19 '16 at 09:09
  • No any errors in IE's console – el ogri amine Oct 19 '16 at 09:13
  • IE is known for caching AJAX GET requests. Try the above cache busting as a test or for a more permanent solution, see http://stackoverflow.com/questions/16098430/angular-ie-caching-issue-for-http – Phil Oct 19 '16 at 09:15
  • the problem into the solution that you sent me is that to put the config Module must have the hand at the entrance to the application, which is not the case in my case because I use a framwork that called seedstack that allows you to create that service and controller and hide you to enter – el ogri amine Oct 19 '16 at 09:57

0 Answers0