TAAFT
Free mode
100% free
Freemium
Free Trial
Deals

killercup / angular-notifications

Notification service for angular offering alerts and confirms supporting cordova

2 0 Language: JavaScript License: MIT Updated: 25d ago

README

Angular Notifications Service

Notification service for Angular.js offering alerts and confirms, with special support for Cordova's Notifications plugin (allows setting the notification title and button lables).

Install

For now, just make sure the src/notifications.js is somewhere in your build process so you can require notifications in your modules.

Usage

angular.module("Demo", ['notifications'])
.controller 'DemoCrt', (Notifications) ->
    userAlert = Notifications.alert
      title: "Hi there!"
      msg: "You seem to be expecting the demo controller!"

    userAlert.then ->
      console.log("User closed the controller expectation alert")
0 AIs selected
Clear selection
#
Name
Task