-
Notifications
You must be signed in to change notification settings - Fork 630
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
use case: user settings / dictionary support / ordered dictionary #32
Comments
We added |
Can you give an example of how to use this? Using getByName inside the controller returns undefined because the collection hasn't populated yet. Placing it inside a callback doesn't seem to help either. |
Not sure how settings fit in to your other requirements. But try this (implicit update): |
Here is an explicit update version of the previous plnkr: http://plnkr.co/edit/KztBQDET6XVOdjkxoZgG?p=preview |
@bennlich Do you figure out how to use getByName and getByNames? |
For me, it only returns an integer, which is not an index. Very confused. On Sun, Sep 15, 2013 at 2:01 PM, vzhen notifications@github.com wrote:
|
getByName returns the item in the collection. |
Well, I know what's it's supposed to do, i'm just saying, the following: var collection = angularFireCollection(new Firebase(URL)); For ME, item = 8, sometimes item = 7. If i'm doing something wrong, On Tue, Sep 17, 2013 at 8:02 AM, johnsoftek notifications@github.comwrote:
|
Hmm. So what are the objects in your collection? What object corresponds to On Tuesday, 17 September 2013, becush wrote:
|
It would be very helpful if angularFireCollections were key-accessible.
I'm trying to save some user settings to firebase. I'd like the settings object to look like:
or, if necessary:
To deal with ordering and human-readable titling, I'm planning to use a $scope variable outside of Firebase:
Then my view can look like:
There doesn't seem to be a way to access elements of an angularFireCollection by key, though, so this won't work. Has anyone else run into a similar use case?
It would also seem natural to be able to do something like:
The text was updated successfully, but these errors were encountered: