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

How to bind two editable-select , e-ng-options together? #521

Closed
JaosnHsieh opened this issue Aug 23, 2016 · 1 comment
Closed

How to bind two editable-select , e-ng-options together? #521

JaosnHsieh opened this issue Aug 23, 2016 · 1 comment

Comments

@JaosnHsieh
Copy link

JaosnHsieh commented Aug 23, 2016

Hi ,
I'm trying to make a car Brands -> Models input options but I can't change the 2nd input options after I selected the 1st input.

Like when I select "Ford" then I can only select 'Focus' or 'Fiesta' at the next input.
And when I select 'Toyota' then I can only select 'Camry' at the next input.

below is the link I didn't finish.

http://jsfiddle.net/NfPcH/16483/


I found an possible way to make it , put ng-change directive on the first option then I can change the second options , but I tried to put "ng-change" on the editable tag , it shows an error " ReferenceError: models is not defined " , Where can I put ng-change will bind the select input element? Thanks.

http://jsfiddle.net/NfPcH/16490/

Thanks


Update :

I found a "e-ng-change" and then put $data as parameter , it works. Thanks.
http://jsfiddle.net/NfPcH/16491/

@ckosloski
Copy link
Contributor

Thanks for posting your results!!
Can this issue be closed now?

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