ember-cli-js-cookie
v0.1.1
Published
The default blueprint for ember-cli addons.
Downloads
2,328
Maintainers
Readme
Ember-cli-js-cookie
Installation
ember install ember-cli-js-cookie
Usage
import Ember from 'ember';
import Cookies from 'ember-cli-js-cookie';
const { RSVP } = Ember;
export default Ember.Route.extend({
beforeModel() {
if (!Cookies.get('logged-in')) {
return RSVP.reject();
}
}
});
js-cookie library
https://github.com/js-cookie/js-cookie