You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 17, 2025. It is now read-only.
When two controllers access the same Firebase path, only the first $on('loaded', ...) handler gets fired.
This is due to the fact that locally cached data fires value events synchronously in Firebase. So on the first load, the server is contacted asynchronously by angularFire's _getInitialValue method.
However, on the second load, since the value is already local, the broadcast event happens synchronously, and therefore before your $on('loaded'...) handler gets attached.