trying to find the best way of handling conditional flow when using promises, for example when saving new or existing tags in a post, if the tag exists i need to do something with it, but if it is new i need to add it first, then do the same as if it existed.
firebase might be very powerful but the child relationships are annoying, i am considering using a single level firebase for each content type, ie tags, posts, authors, settings, and include relational firebases that will be cached by angular services on app start. then use underscore to query the relationships.