Firebase binding use $q in AngularJS