Fetching Firebase Data in an AngularFire callback
Every example I have ever seen of an Angular app with Firebase has had a
very static path.
Click Add -> Takes you to a New View
Click Save -> Saves Data and Routes you to a list view
Click on Item (from list view) -> Routes you to edit view of that object
using $routeparams
I'm trying to write a function that modifies some local data and adds it
to an fb collection AND route's the user to an edit view of that
particular object and in one action. AngularFire's add() method takes a
callback, if I could get the $id for the object that was just added in
that callback I could use $routeparams to perform the desired action.
Is this even possible?
No comments:
Post a Comment