angular-localForage
angular-localForage copied to clipboard
Binding to an element in an scope array
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!
You're trying to bind from localForage -> an index of a $scope array, am I understanding that correctly?
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.