vendredi 3 juin 2016

Use an application's route's action in a template component

Firstly, I'm fairly new to Ember, so the way things interact muddles me up easily.

I am working within an existing Ember application. In the app's routes/application.js.es6 there are actions defined. Given that these actions are in the application route, can I access them from anywhere?

I am specifically looking to use one of the application's route's actions in a template/component.

In the component's js file, do I need to inject or import something to use the action from the application route?




Aucun commentaire:

Enregistrer un commentaire