You need to sign in to do that
Don't have an account?
Lightning component, controller function having multiple parameter
Hi Guys,
I am trying to use a single lightnign controller in many place in the component, all the time wherever I am using it will have different parameters,
Please let me know how I can achieve that
Just for better understanding
Thanks in advance
I am trying to use a single lightnign controller in many place in the component, all the time wherever I am using it will have different parameters,
Please let me know how I can achieve that
Just for better understanding
////////////////// component //////////////////////////// <!--Here is the link 1 where I want to show function with param1 as the parameter --> <a href="#" onclick="{c.Show('param1')}"> Link 1</a> <!--Here is the link 2 where I want to use same show function with param2 --> <a href="#" onclick="{c.Show('param2')}"> Link 1
Thanks in advance
Here is my component
Here is the controller
Hope it explains well.
thanks