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

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -