/ember-transition-helper

Ember addon. Allows to use transitionTo as a action.

Primary LanguageJavaScriptMIT LicenseMIT

ember-transition-helper Build Status Ember Observer Score

Do you want to do this?

{{some-link click=(transition-to "test" 'arg-to-route')}}

Then this addon is for you. This is a very simple addon that gives you access to a helper (transition-to).

Requirements

Requires Ember 2.3.0+ ( we use Ember.getOwner API, which was introduced in 2.3.0 ).

Polyfill for getOwner:

if you don't have ember 2.3+ you can install a polyfill addon: https://github.com/rwjblue/ember-getowner-polyfill

Installation

To use the transition-to helper provided by this addon from within your Ember application, execute the following command from the root of your project:

  • ember install ember-transition-helper

Development

Preparation

  • git clone <repository-url> (this repository)
  • cd ember-transition-helper
  • npm install

Running

Running Tests

  • npm test (Runs ember try:each to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit https://ember-cli.com/.