An open API service indexing awesome lists of open source software.

https://github.com/bbvaengineering/ember-state

State service that manage browser history navigation
https://github.com/bbvaengineering/ember-state

ember-addon ember-cli-addon history navigation

Last synced: 11 months ago
JSON representation

State service that manage browser history navigation

Awesome Lists containing this project

README

          

# ember-state

[![CI](https://github.com/BBVAEngineering/ember-state/actions/workflows/ci.yml/badge.svg)](https://github.com/BBVAEngineering/ember-state/actions/workflows/ci.yml)
[![NPM version](https://badge.fury.io/js/ember-state.svg)](https://badge.fury.io/js/ember-state)
[![Dependency Status](https://status.david-dm.org/gh/BBVAEngineering/ember-state.svg)](https://david-dm.org/BBVAEngineering/ember-state)
[![codecov](https://codecov.io/gh/BBVAEngineering/ember-state/branch/master/graph/badge.svg)](https://codecov.io/gh/BBVAEngineering/ember-state)
[![Ember Observer Score](https://emberobserver.com/badges/ember-state.svg)](https://emberobserver.com/addons/ember-state)

## Information

[![NPM](https://nodei.co/npm/ember-state.png?downloads=true&downloadRank=true)](https://nodei.co/npm/ember-state/)

An [ember-cli addon](http://www.ember-cli.com/) with a State service that manage browser history navigation.

## Install in ember-cli application

In your application's directory:

ember install ember-state

## Usage

This service is to store all history states.
We can access to the following states:

- current.

- previous.

- next.

- last.

Example:

```javascript
state: inject.service(), state.get('current.index');
state.get('previous.index');
```

## Contribute

If you want to contribute to this addon, please read the [CONTRIBUTING.md](CONTRIBUTING.md).

## Versioning

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/BBVAEngineering/ember-state/tags).

## Authors

See the list of [contributors](https://github.com/BBVAEngineering/ember-state/graphs/contributors) who participated in this project.

## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details