angularjs - Create array of objects in an object - Node.js -


in below code, 'info' object has description, quantity, value. how give them array(indo property). how retrieve in angular code.

details.customsdetail.itemdetails = {                     currency : "2000usd",                     weight : "lbs",                     info : {                                                  description : "descr",                         quantity : "2",                         value : "124",                                     }              }; 

do mean , indo property array of objects?

details.customsdetail.itemdetails = {                     currency : "2000usd",                     weight : "lbs",                     info : [{                         // how give in array.                         description : "descr",                         quantity : "2",                         value : "124",                                     }]              }; 

Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -