Is it possible to limit access to the sidebar until the user has completed the login process?
The sidebar is located outside the main ui-view section
I am assuming that authenticated
is a state variable
<div ng-controller="MyController" ui-prevent-touchmove-defaults>
<section style="height: 100%" layout="row" flex="">
<div ui-if="authenticated" ng-include="'pages/sidebar.html'"></div>
<md-content id="container" style="overflow:hidden;height: 100%;padding: 0 0 0 0" ui-view flex=""></md-content>
</section>
</div>
In my JavaScript code, I set an initial value
SharedState.initialize($rootScope, "authenticated", false);
However, when I call this method after the user logs in
SharedState.initialize($rootScope, "authenticated", true);
The UI does not display the sidebar, is there a trigger method to force a re-render?