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
Obaid KhanObaid Khan 

Having two components Cmp1 Cmp1 ... on Cmp1 want to give link using href to Cmp2 and also one link to record and open in same page ... K

Martha VMartha V
Well, I'm not sure what you are looking for, but if you want to call Cmp2 from Cmp1 you can pass the href as a string attribute. You then say one link to record... which record are you talking about? Your post is not clear.
Obaid KhanObaid Khan
hy Martha thanks  done with it ,below code  sort it out

<a href="javascript:void(0)" onclick="{!c.doSomething}">
            Click me to do Something 
Controller  of this component Cmp1
doSomething : function(component,event, helper) {
       console.log('Hey There .. the anchor was clicked');
       var href = event.srcElement.href;

Martha VMartha V