-
-
Notifications
You must be signed in to change notification settings - Fork 342
Querying with params from $route #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I managed binding it. |
Sounds like you resolved this problem. If you did, please provide the solution you ended up with so that future devs can benefit from your answer. |
Here's my solution. It's just a hacky quickfix, but that's where the change is needed. Possibly you want to incorporate it in a different way. Here is how it is used: I will have to make sure that it does not interact with the other problems I opened issues for. |
Should I file a PR? |
Same issue. export default {
firebase: {
articles: db.ref('/data/article').orderByChild('id').equalTo(this.$route.params.id)
// Uncaught TypeError: Cannot read property '$route' of undefined
}
} I hope that there will be a official fix because I'm using |
@FranzSkuffka #25 adds this. I'll merge it this week and release a new version with the feature 😄 |
@posva thanks very much for the heads up :) |
@FranzSkuffka Well, I just want to keep all dependencies managed by @posva Thanks! |
I came to realise that if I pass a function to
firebase
like I would pass todata
in one of mycomponents, it does not get called. I want to pass a route parameter to my query
innovation
.I also tried binding the data sources in the
ready
hook.Am I doing something wrong? Do you have a recommended approach or a working example?
The text was updated successfully, but these errors were encountered: