I was wondering if theres any way to prevent removing the field in json.
for example i have a form:
<form name="frmSample"><input type="text" required ng-model="user.firstname"
/><input type="text" ng-model="user.lastname" /></form>
so if field is not empty the object will be {"firstname":"not
empty","lastname":"not empty"} but what i need is to make it like this when
empty: {"firstname":"","lastname":""} even if they are required, not
{"lastname":""}
is it posible?
here is my jsfiddle: http://jsfiddle.net/jasonv/Vsa2N/2/
thanks
--
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.