dimanche 21 juin 2015

Using an adapter on parent route but not children

I'm building a web app and I'm building a chat system for the webapp using firebase. I first built the app now I'm adding the chat. Everything kinda works I just have one issue. The chat system is only present once logged in or anything under the user route. I have routes like user.dashboard user.reminders etc. All of the data for those sub routes are coming from the API I built. So here is the issue for me to make the chat I'm using EmberFire which comes with its own adapter. I use that adapter in user route and the chat works however now all my other routes under user that do not use firebase are also inheriting the firebase adapter which breaks the app obviously. Now I know I cold just make an adapter for each route just to extend the application adapter but that seems buggy and this is a long term project so I want to do it right. How can I only use the adapter on the user route but not affect its children?




Aucun commentaire:

Enregistrer un commentaire