Closed agamdua closed 10 years ago
populate tabs
@gpranav88 - Some data missing in store API:
Link to Google Map. I am calling it as storeData.map in Angular, so need to add a 'map' variable which contains the link in API.
<tab heading="Map">
<iframe width="750" height="450" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src={{storeData.map}}></iframe>
</tab>
Again, images have a callback problem.
@gpranav88 - the rest should work with updated API
@kartikdhar - please check markup I think adding a row will solve the problem.
To be clearer, apart from the maps, etc:
[
{
"id": 1,
"store": 1,
"name": "blue saree",
"sku": "",
"sex": "",
"price": 1500.0,
"price_discounted": 1400.0,
"brand": "ohgaan",
"color": "blue",
"material": "silk",
"sizes": "L",
"made_to_order": false,
"active": true,
"description": "bllueel llk lafkl ",
"popularity": "",
"created_on": "2014-01-24T18:01:24.016",
"updated_on": "2014-01-24T18:01:24.016",
"num_images": 2,
"category": "Saree"
},
{
at http://localhost:8000/api/stores/1/products should have a 'Product' key for iteration purposes (required by ng-repeat)
The map url will be present in map_url field of store (map is a reserved keyword).
Populate these