$ state.go and navigation direction
I have a ui-sref link.
<a ui-sref="tab.search-results(backTo)" nav-direction="back" class="button no-margin-top bold button-full button-stable">
<span class="assertive">BACK</span>
</a>
I use nav-direction
to go back. How to do this with $state.go()
?
<a ng-click="parts.goBack()" class="button no-margin-top bold button-full button-stable">
<span class="assertive">BACK</span>
</a>
I don't see this option anywhere.
function goBack( ) {
// How do I go back via nav direction?
$state.go('tab.search-results');
}
+3
source to share