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

Two way binding for selection not working in ListView #78

Open
varghesep opened this issue Oct 28, 2015 · 2 comments
Open

Two way binding for selection not working in ListView #78

varghesep opened this issue Oct 28, 2015 · 2 comments

Comments

@varghesep
Copy link

I asked a question in stackoverflow about a two way binding issue with the ListView.

The issue is that selecting a list item (mouse click or touch) does not set the selection variable.

@devshafeeque
Copy link

You have to use selection-mode="'single'" tap-behavior="'directSelect'". I have answered in SO, Pls see the JSFiddle in for example.

SO Link http://stackoverflow.com/questions/33380549

@Odonno
Copy link

Odonno commented Jan 2, 2016

And what if we change the content of the selection property ? For example :

selection="test"

EDIT : sorry, I just found that we need to define an array in the controller $scope.selection = [];.

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

4 participants