Vuefire: Why not just use a route.param in my Firebase query?

Created on 20 Apr 2017  路  2Comments  路  Source: vuejs/vuefire

Why can I not use a route.param to use in my Firebase Query?
Like shown in screenshot below:

image

Is this something for the future? Or is there another elegant way to do this?

And if this should work, I probably have to set watchers on the $route and refresh the data in my view (router-view). I need the watcher now too, because I want to see the details of the selected master in my router-view.

image

Most helpful comment

Great! Thanks for your quick reply!

This works! 馃憤

image

All 2 comments

Use the function syntax for firebase. this isn't bound to the Vue instance otherwise

Great! Thanks for your quick reply!

This works! 馃憤

image

Was this page helpful?
0 / 5 - 0 ratings