<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-router/0.2.15/angular-ui-router.js"></script>
<p>In this jsfiddle state "root.app.pivot" is landing page that redirects to
root.app.a or root.app.b
</p>
<p>When can see that the first time, "root" and "root.app" revolve method are triggered twice</p>
<p>and that when clicking on "page b" link a <span class="error">Error: null is not an object (evaluating '$state.$current.locals[name]')</span> occurs
</p>
<hr />
<div ng-app="myApp">
<a ui-sref="root.app.pivot({page:'a'})">page a</a> |
<a ui-sref="root.app.pivot({page:'b'})">page b</a>
<ui-view name="main"></ui-view>
</div>