This package has been deprecated

    Author message:

    Package no longer supported. Use github.com/abcum/ascua instead.

    @abcum/ember-storage

    2.1.2 • Public • Published

    ember-storage

    A utility for working with localStorage in an Ember.js app.

    Usage

    Installation

    ember install @abcum/ember-storage

    Introduction

    The ember-storage addon adds functionality for retrieving and manipulating localStorage key-value items from routes, controllers, templates, and components, enabling bound values and computed properties, whilst persisting data across page reloads.

    Examples

    Get the value for the localStorage['email'] key.

    {{storage.email}}

    Binding an input value directly to the localStorage['email'] key.

    {{input type="text" value=storage.email}}

    Using the storage service to get localStorage['email'] inside an Ember controller.

    export default Ember.Controller.extend({
    	actions: {
    		login: function() {
    			facebook.login( this.get('storage.email') );
    		}
    	}
    })

    Development

    • make install (install bower and ember-cli dependencies)
    • make upgrade (upgrade ember-cli to the specified version)
    • make tests (run all tests defined in the package)

    Keywords

    Install

    npm i @abcum/ember-storage

    DownloadsWeekly Downloads

    27

    Version

    2.1.2

    License

    MIT

    Unpacked Size

    9.92 kB

    Total Files

    17

    Last publish

    Collaborators

    • tobiemh