Skip to content Skip to sidebar Skip to footer

How To Define A Module Pattern For An Array Of Products With Products Properties?

The webpage I'm developing loads some product information of a varying number of products from the database. I'd like to save this product info in a module pattern (simulating sta

Solution 1:

depends on what you want to do with that products.. but i think most logical solution would be use something like var products = [{name:'', price:'', type:''}]; if you do so, then manipulation more easier than with arrays.. or you can use product and products modules.


Post a Comment for "How To Define A Module Pattern For An Array Of Products With Products Properties?"