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

Binding to an element in an scope array #75

Open
davidtlee opened this issue Aug 6, 2015 · 2 comments
Open

Binding to an element in an scope array #75

davidtlee opened this issue Aug 6, 2015 · 2 comments

Comments

@davidtlee
Copy link

Is it possible to use the bind function to bind to a particular element in a scope array? e.g. if I wanted to bind a stored message array to the array scope.messages, I would do $localForage.bind($scope, 'messages').

But suppose I wanted to bind a particular stored message to a particular index within a scope array. Is there a way to do something like

$localForage.bind($scope, {
  key: 'message',
  scopeKey: 'messages[0]'
});

Thanks!

@scotttrinh
Copy link
Owner

You're trying to bind from localForage -> an index of a $scope array, am I understanding that correctly?

@scotttrinh
Copy link
Owner

I'm not going to promise this for 1.3.0, but I do like this idea. PR's welcome, or we can wait for 1.4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants