function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
VSK98VSK98 

Aura Method is not working

Hi All,

I have two components (Parent & child) & I am passing some parameters from Parent to Child using Aura method. I can able to retrieve the parameters to Child also. But I couldn't able to bind the parameter value to the child attribute. 

Screenshot:User-added image

Code:
executeMyMethod : function(component, event, helper) {
        
        var params = event.getParam('arguments');
         console.log('name: '+ params.name); -- Getting values
         console.log('city: '+ params.city);
          console.log('Assetcnt: '+ params.Assetcnt);
          console.log('CustomerId: '+ params.CustomerId);
          console.log('children: '+ params.children);
        component.set("v.name",params.name);
          alert(component.set("v.name",params.name));-------Undefined
Could you please help me out.

Regards,
VSK98