Integrating Firebase and ui-router