brilliant work with this but I'm having a wee issue saving an object. I
create a ref to a specific location within my firebase and I can save a new
object to that location but then I'm stuck changing my onsen view as the
$scope doesn't seem to have the reference to the new object immediately...
My code is thus:
ref = new Firebase(refBase + "/" + $scope.user.uid + "/things/thing");
Then I save a new thing like this:
ref.push(newThing); // newThing is an object
newThing has a number of categories and I add a category like this:
ref.child(id).child("category").push(newCategory); // newCategory is an
then I set my view like this:
$scope.mySplitView.setMainPage('detail.html'); // detail.html ng-repeats
categories associated with the thing.
The thing is though - the angular on the detail.html page doesn't see the
newCategory immediately. Is there a promise I can use or can anyone suggest
what I'm doing wrong...?
Any help greatly appreciated!
You received this message because you are subscribed to the Google Groups "Firebase + AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
To post to this group, send email to firstname.lastname@example.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-angular/946d4d33-12df-4617-8c02-b16e9eca2dda%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.