https://github.com/bbvaengineering/ember-route-helpers
Transition into routes with helpers directly on template
https://github.com/bbvaengineering/ember-route-helpers
ember-addon emberjs templates transition
Last synced: 3 months ago
JSON representation
Transition into routes with helpers directly on template
- Host: GitHub
- URL: https://github.com/bbvaengineering/ember-route-helpers
- Owner: BBVAEngineering
- License: mit
- Created: 2017-05-22T09:18:37.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-02-27T22:42:50.000Z (over 2 years ago)
- Last Synced: 2024-10-17T02:49:25.940Z (9 months ago)
- Topics: ember-addon, emberjs, templates, transition
- Language: JavaScript
- Homepage:
- Size: 2.79 MB
- Stars: 8
- Watchers: 5
- Forks: 3
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ember-route-helpers
[](https://travis-ci.org/BBVAEngineering/ember-route-helpers)
[](https://badge.fury.io/gh/BBVAEngineering%2Fember-route-helpers)
[](https://badge.fury.io/js/ember-route-helpers)
[](https://david-dm.org/BBVAEngineering/ember-route-helpers)
[](https://codecov.io/gh/BBVAEngineering/ember-route-helpers)
[](https://greenkeeper.io/)
[](https://emberobserver.com/addons/ember-route-helpers)## Information
[](https://nodei.co/npm/ember-route-helpers/)
Transition into routes with helpers directly on template.
## Requirements
- Ember.js v4.0.1 or above
- Ember CLI v4.4.0 or above
- Node.js v14 or above## Installation
```
ember install ember-route-helpers
```## Usage
### `(transition-to 'destination' model (query-params foo='bar'))`
`(transition-to)` helper that receives the same argument signature as `link-to` but evaluates to an action that can be called to trigger transition.
```hbs
Go to Index
```### `(replace-with 'destination' model (query-params foo='bar'))`
`(replace-with)` helper that transition into another route while replacing the current URL, if possible. This will replace the current history entry instead of adding a new one. Beside that, it is identical to transitionTo in all other respects.
```hbs
Go to Index
```### `(transition-to-external 'destination' (query-params foo='bar'))`
`(transition-to-external)` helper that transition from an Engine to an external route.
```hbs
Go to Index
```### `(replace-with-external 'destination' (query-params foo='bar'))`
`(replace-with-external)` helper that transition (replacing) from an Engine to an external route.
```hbs
Go to 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-route-helpers/tags).
## Authors
See the list of [contributors](https://github.com/BBVAEngineering/ember-route-helpers/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