Has anyone managed to solve this? I was searching for an answer but it 
seems that this is still not supported in Angular.
I am using version 1.3.15.

On Saturday, November 19, 2011 at 4:02:04 PM UTC+1, kaqi wrote:
>
> When I use <option> element directly like the following way, the
> validator works fine.
>
> <select name="score" ng:required ng:validate="number" >
>         <option value="">please select</option>
>         <option value="a">a</option>
>         <option value="b">b</option>
> </select>
>
> But when I change to use ng:options for the option, the validator does
> not work any more.
>  <select name="score" ng:required ng:validate="number" ng:options="s
> for s in ['a','b']">
>         <option value="">please select</option>
> </select>
>
> I use angular-0.9.19.js. I have tracked the code. It never enters the
> following code which expect to do the validation.
> Line 9992
> function valueAccessor(scope, element) {
> ...
>
> Line 10006
>   function validate() {
> ...
>
> As you know, in most cases, we would use ng:options for the option.
> So, do you guys have any idea on how to solve this problem?
>
> Thank you in advance. And AngularJS is really a great JS MVC framework!
>
>

-- 
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