Why does my Angular's ng-show call only get updated on the second click using Firebase?
问题 I am working on a sign-in page using AngularJS and Firebase. So far, most of my code has been working fine, until I tried to add notifications. It seems that the won't display when ng-show says that they should. It takes two clicks to work, which should never be the case. As of now, I have the following button. <button ng-click="cna()" type="button" class="btn btn-success ban block" style="width:50%">Create New Account</button> The cna() function is the Create New Account function. This looks