I have a requirement to open a primary tab by clicking on anchor tag.
It is happening but if I come back to the previous tab it's getting changed like primary tab. I know the issue is we have to pass return true while calling OpenPrimaryTab().
<tr ng-repeat="case in Caseinformation|orderBy:sortType:sortReverse | filter:query " style="height:1px;" class="data-row">
<td style="text-align:left;"><a ng-href="/{{case.caseId}}" ng-click= "openPrimaryCaseTab(case.caseId,case.caseNumber);return false">{{case.CaseNumber}}</a></td>
//Javascript
$scope.openPrimaryCaseTab = function (recordID,caseNumber) {
alert('open primary tab'+recordID);
sforce.console.openPrimaryTab(null,recordID,true,caseNumber);
}
return false
is not working in ng-click, please suggest some workaround.