Hi All,

I am trying to understand how Angular decides a particular input is a 
string or a numeric when it deserializes the view back to the model.

I have an input type text which was bound to a numeric JSON property 
through ng-model. I have attached ng-blur which will send the value of the 
textfield via ajax request.

The thing I don't understand is this: if I enter the correct numeric value 
into the textfield, the JSON property sent to the server is string instead 
of number.

Has anyone encounter something similar to this? How does Angular decides if 
something is a numeric or a string?

Thank you for your time!

Regards,

Felix


-- 
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/groups/opt_out.

Reply via email to