I have the hyperlink like this in my view:
<a ng-switch-when="true" href="" data-ng-click="goToTest(data)">
{{data.current_state_title}}
</a>
On controller my goToTest method using ui-router like this:
$scope.goToTask = function (value) {
$state.go('my_work.test’, {
sourceId: value.source_versions[0].source_id,
sourceVersionId: value.source_versions[0].id
});
};
So I need to open this my_work.test url in one tab of browser and another url for e.g: my_work.test_list into another tab of browser in one click.
I am also new to the angularjs. Any help will be really appreciated.