Skip to content

Instantly share code, notes, and snippets.

Created March 9, 2015 22:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/738eedf792b6d5f23ebe to your computer and use it in GitHub Desktop.
Save anonymous/738eedf792b6d5f23ebe to your computer and use it in GitHub Desktop.
.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