An Ember CLI addon. Allows to combine {{link-to}}
helper with firing an action.
It is useful when you want to fire an action at the same time when user transitions to other route by clicking {{link-to}}
. It is OK for SEO solution.
You can pass closure action as invokeAction
attribute of {{link-to}}
component:
You can also use string name instead of closure action:
To pass parameters to action you can use:
Addon works with >= 2.0
versions of Ember. Tests confirm that it works as expected with release, beta and canary.
Run following Ember CLI command in your project directory:
ember install ember-link-action
git clone
this repositorynpm install
bower install
ember server
- Visit your app at http://localhost:4200.
ember test
ember test --server
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.