EmberJS-Sending Actions from Components to Your Applicatio



Sending Actions from Components to Your Application

The component can send actions to template's controller and routes when it is being used by inside a template by using sendAction() method.

The following table lists down the action's components −

S.N.Action's Component & Description
1

Sending a Primary Action

To set primary action in a component, use an action attribute directly in a component.

2

Sending Parameters with an Action

It uses the sendAction() method with the additional parameters.

3

Sending Multiple Actions

The component generates multiple different actions to specify different events.

4

Actions that aren't Specified

It determines the actions are not defined in the component.

Advertisements