Skip to content
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

Dynamic Ref #46

Closed
vanderlin opened this issue Nov 11, 2016 · 1 comment
Closed

Dynamic Ref #46

vanderlin opened this issue Nov 11, 2016 · 1 comment
Labels

Comments

@vanderlin
Copy link

I want to figure out the best time to bind the data. Say you are passing a id from a route, If I try to access this info in the beforeCreate method data is null. When is it best to bind this data?

ie:

var id = this.$route.params.id;
var ref = firebase.database().ref('/profiles/'+id);
this.$bindAsArray('profiles', ref) 
@posva
Copy link
Member

posva commented Nov 11, 2016

It looks like you want to access it asap. Then you should do that on the created hook

@posva posva closed this as completed Nov 11, 2016
@posva posva added the question label Jan 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants