I missed out some details on my question. If I enter a value that is below 
*1* or greater than *100* then I was expecting *ngModelSpy.valid* to be 
*false* but it remains *true*.

On Sunday, August 28, 2016 at 6:07:50 PM UTC+1, Anjum Naseer wrote:
>
> Hi,
>
> I have a form that has an *input* element of *type*="*number*". When I 
> use a spy to inspect the *ngModel* it does not seem to care about the 
> *min*/*max* attributes that I have set on this element.
>
> I have captured the problem here: Plunker 
> <https://plnkr.co/edit/IsEXpDBhV0DSdnaKHk6Z?p=preview>
>
> I thought that *ngModelSpy*.*valid* would respect these attributes - have 
> I misunderstood the behaviour?
>

-- 
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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to