Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

<select> doesn't init model value #712

Closed
wtk300 opened this issue Jan 11, 2012 · 2 comments
Closed

<select> doesn't init model value #712

wtk300 opened this issue Jan 11, 2012 · 2 comments

Comments

@wtk300
Copy link

wtk300 commented Jan 11, 2012

Model value is not init by first item from array where compiler compile the template.

@IgorMinar
Copy link
Contributor

Can you provide a jsfiddle example?

If I understand your bug report correctly, then this behavior is intentional. The template should not drive the model, but the model should drive the view. So you should initialize the model from your controller if an initial value is supposed to be selected in the select drop down.

@wtk300
Copy link
Author

wtk300 commented Jan 12, 2012

Hi Igor, this issue was discussed in topic
http://groups.google.com/group/angular/browse_thread/thread/3ce3a86307f2b449?pli=1

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

No branches or pull requests

2 participants