# @abcum/ember-storage

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

Latest version **2.1.2** (published 2018-06-16) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @abcum/ember-storage
pnpm add @abcum/ember-storage
yarn add @abcum/ember-storage
bun add @abcum/ember-storage
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.1.2 |
| Published | 2018-06-16 |
| First published | 2017-08-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | ^4.5 \|\| 6.* \|\| >= 7.* |
| Dependencies | 1 |
| Unpacked size | 9.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tobie Morgan Hitchcock |
| Maintainers | tobiemh |
| Keywords | ember-addon |

## Links

- npm: https://www.npmjs.com/package/@abcum/ember-storage
- Repository: https://github.com/abcum/ember-storage
- Homepage: https://github.com/abcum/ember-storage#readme
- Issues: https://github.com/abcum/ember-storage/issues
- npm.io page: https://npm.io/package/@abcum/ember-storage

## Dependencies (1)

- [ember-cli-babel](https://npm.io/package/ember-cli-babel.md) ^6.6.0

## Recent versions

- 2.1.2 (latest) — 2018-06-16
- 2.1.1 — 2018-03-27
- 2.1.0 — 2018-02-13
- 2.0.0 — 2018-01-08
- 1.0.0 — 2017-08-02

## README

# ember-storage

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

[![](https://img.shields.io/circleci/project/abcum/ember-storage/master.svg?style=flat-square)](https://circleci.com/gh/abcum/ember-storage) [![](https://img.shields.io/npm/v/@abcum/ember-storage.svg?style=flat-square)](https://www.npmjs.com/package/@abcum/ember-storage) [![](https://img.shields.io/badge/ember-2.16.1+-orange.svg?style=flat-square)](https://github.com/abcum/ember-storage) [![](https://david-dm.org/abcum/ember-storage/status.svg?style=flat-square)](https://david-dm.org/abcum/ember-storage) [![](https://david-dm.org/abcum/ember-storage/dev-status.svg?style=flat-square)](https://david-dm.org/abcum/ember-storage?type=dev) [![](https://img.shields.io/badge/license-MIT-00bfff.svg?style=flat-square)](https://github.com/abcum/ember-storage) 

## 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.

```hbs
{{storage.email}}
```

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

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

Using the storage service to get `localStorage['email']` inside an Ember controller.
```js
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)

---
_Source: https://npm.io/package/@abcum/ember-storage · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
