Removed $scope.$apply() and added console.log(infoWindow.content) before and after $compile