googlearchive / generator-angularfire

Yeoman generator for AngularFire: Angular + Firebase apps
190 stars 52 forks source link

ng-show-auth ng-hide-auth elements on header of index.html flashed before loaded #44

Closed yipcma closed 9 years ago

yipcma commented 9 years ago

According to the scripts comments, this should not happen, but i did see the account button flashed out before disappearing quickly (after i've logged in). Thoughts in mitigating the issue?

somecallmejosh commented 9 years ago

Same issue on my end.

katowulf commented 9 years ago

I'm not sure what "header of index.html" refers to here or what content is being flashed (is it the Angular expression or the rendered content?). Also, can you add version info and browser data?

Would help I can better understand exactly what I'll be trying to reproduce when I dig into this.

LukaszWiktor commented 9 years ago

log in and account links are visible together for a moment

auth hide flash

jabas06 commented 9 years ago

log in and account are visible before auth directives´s link functions actually run.

You can insert the ng-cloack directive in the header element to fix it:

 <div class="header" ng-cloak>
katowulf commented 9 years ago

Fixed for 1.0.0. Thanks!