Ember Link Action
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.
Usage
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:
Compatibility
Addon works with >= 3.0
, >= 2.0
versions of Ember. Tests confirm that it works as expected with release, beta and canary.
For 1.13.13
compatibility use tested version: 0.0.37
. In other cases - use the latest version.
Installation
Run following Ember CLI command in your project directory:
ember install ember-link-action
Contributing - Installation
-
git clone
this repository npm install
bower install
Contributing - Running
ember server
- Visit your app at http://localhost:4200.
Contributing - Running Tests
ember test
ember test --server
Contributing - Building
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.