Angular ng-show shows both options for a split second before view render

Angular ng-show shows both options for a split second before view render
0

#1

My code is ng-show =“user” then it shows logout button, then ng-show="!user" the view shows sign-in button. I tried to use resolve in routes so data is loaded before view is rendered, but this issue still happens where both options are showed for a split second until when the view is loaded.