Created
March 9, 2015 22:34
-
-
Save anonymous/738eedf792b6d5f23ebe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.controller('AgendaCtrl', function($scope, AgendaFactory, $ionicSideMenuDelegate, $rootScope, $ionicPopup, $timeout, $cordovaLocalNotification) { | |
$scope.agendaItems = AgendaFactory.getAgenda(); | |
$scope.firstTimeLogin = $rootScope.firstTimeLogin; | |
// test for when notification is brpadcast | |
$scope.$on("$cordovaLocalNotification:triggered", function(id, state, json) { | |
alert("Notification Triggered"); | |
console.log("Notification Triggered"); | |
}); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment