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

ui-select ng-model的一个坑 #14

Open
eastany opened this issue Sep 11, 2014 · 1 comment
Open

ui-select ng-model的一个坑 #14

eastany opened this issue Sep 11, 2014 · 1 comment

Comments

@eastany
Copy link
Owner

eastany commented Sep 11, 2014

一般的在ng-model可以直接使用变量,比如ng-model="var1"
但是在使用ui-select的时候却不行,它要求的ng-model必须是一个object,比如$scope.dataSet = {};
$scope.dataSet.var = {};
ng-model="dataSet.var"
作者的解释在这里:angular-ui/ui-select#18

@twinssbc
Copy link

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

No branches or pull requests

2 participants