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 -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -