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
- Host: GitHub
- URL: https://github.com/bbvaengineering/ember-state
- Owner: BBVAEngineering
- License: mit
- Created: 2017-06-12T13:54:45.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T01:22:31.000Z (about 3 years ago)
- Last Synced: 2025-02-25T08:39:52.870Z (12 months ago)
- Topics: ember-addon, ember-cli-addon, history, navigation
- Language: JavaScript
- Size: 1.8 MB
- Stars: 0
- Watchers: 10
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ember-state
[](https://github.com/BBVAEngineering/ember-state/actions/workflows/ci.yml)
[](https://badge.fury.io/js/ember-state)
[](https://david-dm.org/BBVAEngineering/ember-state)
[](https://codecov.io/gh/BBVAEngineering/ember-state)
[](https://emberobserver.com/addons/ember-state)
## Information
[](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