0.1.8 • Published 9 years ago
ember-cli-push v0.1.8
Ember-cli-push
This is a simple service wrapper for Push.js which allows you to easily create native cross-browser notifications.
To include in your project install the addon as usual
ember install ember-cli-pushUsage example:
import Ember from 'ember';
export default Ember.Controller.extend({
push: Ember.inject.service(),
actions: {
sendPush() {
this.get('push').create("Hello world!", {
body: "How's it hangin'?",
icon: '/assets/images/logo.png',
timeout: 4000
});
}
}
})This README outlines the details of collaborating on this Ember addon.
Installation
git clonethis repositorynpm installbower install
Running
ember serve- Visit your app at http://localhost:4200.
Running Tests
npm test(Runsember try:testallto test your addon against multiple Ember versions)ember testember test --server
Building
ember build
For more information on using ember-cli, visit http://ember-cli.com/.