Use a promise for returning data from firebase
Updated angular to 1.3