Can anyone please answer this?

Pushpendra

On Thursday, 23 January 2014 19:02:21 UTC+5:30, Pushpendra Kumar wrote:
>
> Hello All,
>
>             Is it possible to create form json on submit taking field's 
> name as key.
>             Please go to this jsfiddle:
> http://jsfiddle.net/5cDu7/3/
>
> I want to create form json with fields name not model name.
> If its not possible can i make field's model name variable.
> exampel:
> <input type="text" ng-model="modelname"/>
> and in controller.js
> $scope.modelname = "username";
>
> As result when i inspect element in webpage i should get : <input 
> type="text" ng-model="username"/>
>
>
>
>
> Pushpendra
>

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