Questions tagged [aura-method]

Questions related to the aura:method tags which are used to define a method as part of a component's API.

0
votes
1answer
23 views

Lightning Inter-Component Communication Patterns: how to pass efficiently pass down data from parent to dynamically created child? [duplicate]

I know two ways of pass data from parent to child in the case of a static created child components: passing attribute values from parent to child and exposing child methods to parent. The latter ...
0
votes
2answers
208 views

Standard aura:attributes and aura:method attribute

My question is in regards to the fact that I need to get a value from Child component to Parent component. I want to directly call a method from the parent to the child to obtain some data from that ...
0
votes
1answer
272 views

NaN issue in aura:method

I have a aura:method the return value from parent is NaN. Why is my code returning NaN? child component <aura:method name="myAction" action="{!c.myAction}" ...
4
votes
1answer
916 views

Why is an action callback not getting called?

I have a helper function called via a controller function and am calling it in two circumstances: save : function(component, event, helper) { var action = component.get("c....
4
votes
1answer
221 views

Do calls to aura:method only return synchronous results in the context of the framework lifecycle?

I have been experimenting with returning synchronous results from an aura:method called by a parent component. I have observed two use cases in which results are never returned: When the aura:method ...
1
vote
3answers
13k views

aura: method to call child component controller function not working

Using <aura:method>, I am not able to call child component controller function from parent controller. Below code. Parent Component <aura:component access="global" implements="force:...