sonu rathore
sonu rathore

Reputation: 31

converting Html Form data to JSON object using angular JS

Product Id *</span> --> Product Id is required. Product Version * </span> --> Product Version is required.

Upvotes: 1

Views: 8918

Answers (1)

A.I
A.I

Reputation: 1448

Check out the "Simple form" provided in the documentation itself:

https://docs.angularjs.org/guide/forms

Here, basically this expression {{user | json}} converts the ng-Model object user to a json string. Check out the working example from the plunker provided by them. I have edited the plunk to keep only the part relevant to your query.

Upvotes: 1

Related Questions