Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-link-action

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-link-action

An Ember CLI addon. Allows to combine `{{link-to}}` helper with firing an action.

  • 2.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Build Status npm version Ember Observer Score

Ember addon. Fire action when LinkTo transitions to other route. OK for SEO solution.

Usage

Octane

You can pass an action as @invokeAction attribute of LinkTo component:

<LinkTo @route='cart' @invokeAction={{this.testAction}}>Cart</LinkTo>
<LinkTo @route='cart' @invokeAction={{fn this.testAction 'value1' 'value2'}}>
  Cart
</LinkTo>

Classic

You can pass closure action as invokeAction attribute of {{link-to}} component:

{{#link-to 'cart' invokeAction=(action 'testAction')}}
  Cart
{{/link-to}}

To pass parameters to action you can use:

{{#link-to 'cart' invokeAction=(action 'testAction' param1 param2)}}
  Cart
{{/link-to}}

Compatibility

  • Ember.js v3.12 or above
  • Ember CLI v2.13 or above
  • Node.js v10 or above

This addon supports Embroider.

Most recent versions work with >= 3.0 versions of Ember. For more info check test scenarios in travis.yml.

For >= 2.0.0 AND < 3 compatibility use tested version: 1.0.0.

For 1.13.13 compatibility use tested version: 0.0.37.

Installation

ember install ember-link-action

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

Keywords

FAQs

Package last updated on 13 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc