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() {}};
};