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

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.