I have this template
<div class="row">
<div>
<div >
<a ui-sref-active="active" ui-sref="main.step1">
<span>1</span>
</a>
<a ui-sref-active="active" ui-sref="main.step2">
<span>2</span>
</a>
<a ui-sref-active="active" ui-sref="main.step3">
<span>3</span>
</a>
</div>
</div>
</div>
<div id="form-views" ui-view>
</div>
I have a requirement that user should not be able to navigate between theses states by clicking on urls, he should navigate between states with buttons which are in their specific templates.
I was wondering how can I use ui-sref-active
without ui-sref
directive?
Try something like this:
And in
controller
:Hope this will help you.