I have the same problem but i can't use ng-option because i have 
also <optgroup> so if any one can help me :)

On Thursday, January 10, 2013 11:39:23 PM UTC+2, Paul Bradford wrote:
>
> Hi all.  I have a typical angular form & control that I am having a 
> problem in that the $dirty flag is being set to true (and the $pristine 
> flag set to false) when the form is populated from the controller during 
> the initial load.  The control that is causing the issue is a Select 
> element (partial html below) that is using the ui-select2 directive form 
> the Angular-UI library.
>
> <select ui-select2 
>  data-ng-required="!model.Waiver" data-ng-model="model.AdvisorId" 
> data-placeholder="Advisor">
>                     <option ng-repeat="ao in advisorOptions" 
> value="{{ao.UserId}}">{{ao.LastFirst}}</option>
> </select>
>
> If I remove the 'ui-select2' directive, that the flags are $dirty and 
> $pristine flags are properly set.  Anyone else encountered this?  Any 
> suggestions for handling this?
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to