who work with angular 1.3.15
$timeout(function(){ angular.forEach($scope.maps, function(index) { google.maps.event.trigger(index, 'resize'); }); }, 100); } $scope.maps = []; $scope.$on('mapInitialized', function(evt, evtMap) { $scope.maps.push(evtMap); });
http://plnkr.co/edit/3P4iLTrog1ismFDUQNQe?p=preview
other solutions
without adding $ timeout you can also use $ scope. $ applyAsync (), which runs code in the same digest loop
source share