--

testing-array template

*******************************************
string - template

             

Paste in your browser console

/** Example of array object from db -- render2 is an example of render_id**/ CoCreate.render.data({ selector: '[template=abc1]', data: { render2: { array : 'dededede', data: [{ _id : '123kijfhgfkel45', firstname : 'Jin', lastname : 'codingmachinine', personal_info : {email:'jeanmendozar@gmail.com','phone':'56666'}, email: 'tesing@gamil.com', testing_array : [ {email:'jeanmendozar@gmail.com','phone':'0','home':'home1'}, {email:'frank@gmail.com','phone':'1','home':'home2'}, {email:'jose@gmail.com','phone':'2','home':'home3'}, {email:'juan@gmail.com','phone':'3','home':'home4'}, {email:'kooo@gmail.com','phone':'4','home':'home5'}, ], string_array: ['string1', 'string2', 1, 3] },{ _id : '5678efe32qd2ol', firstname : 'jean', lastname : 'Mendoza', personal_info : {email:'jeanmendozar@gmail.com','phone':'56666'}, email: 'tesing2@gamil.com', testing_array : [ {email:'1jeanmendozar@gmail.com','phone':'10','home':'home11'}, {email:'1frank@gmail.com','phone':'11','home':'home12'}, {email:'1jose@gmail.com','phone':'12','home':'home13'}, {email:'1juan@gmail.com','phone':'13','home':'home14'}, {email:'1kooo@gmail.com','phone':'14','home':'home15'}, {email:'1allask@gmail.com','phone':'15','home':'home16'}, {email:'1ana@gmail.com','phone':'16','home':'home17'}, {email:'1rosa@gmail.com','phone':'17','home':'home18'}, {email:'1nuevo@gmail.com','phone':'18','home':'home19'} ], string_array: ['string1', 'string2', 1, 3] }, ] } } })