Here is my component:
<aura:attribute name="showA" type="String" default="admin" />
<aura:attribute name="showB" type="String" default="help" />
<a href="#" data-show="{!v.showP}" onclick="{!c.show}" id="New">Link1<a/>
<a href="#" data-showQ="{!v.showQ}" onclick="{!c.show}" id="Sent">Link2<a/>
Now, whenever a user will click I will get the value of op and op2, but what I want is to use a single attribute and change the value according to the link.
show: function(component,event,helper) {
var op = event.currentTarget.dataset.show;
var op2 = event.currentTarget.dataset.showQ;
alert(conole.log(op +':::::::::'+ op2));
}