diff --git a/controllers.js b/controllers.js index ee6a84e..1e510df 100644 --- a/controllers.js +++ b/controllers.js @@ -23,7 +23,9 @@ angular.module('demo', ["googleApi"]) } $scope.loadCalendars = function() { - $scope.calendars = googleCalendar.listCalendars(); + $googleCalendar.listCalendars().then(function(calendars){ + $scope.calendars = calendars; + }); } }]);