Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Ionic Ion-List is Not Updating After Item is Being Added

$
0
0

My guess is the code running from openAddNewWindowModal is not triggering a digest or your controller code. To try to force the digest, do this in your addNewWindow call:

controller('HomeController', function(..., $timeout) {
$scope.addNewWindow = function(window) {
  $scope.windows.push(window);
  $scope.closeAddNewWindowModal();
  $timeout(function() {}};
};

Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>