Skip to content

Instantly share code, notes, and snippets.

@camskene
Created March 10, 2017 02:33
Show Gist options
  • Save camskene/f3a65cd22f43645b533dcfee522b898c to your computer and use it in GitHub Desktop.
Save camskene/f3a65cd22f43645b533dcfee522b898c to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
data: [{
ownerName: "dubey",
houseNo: "s17/261",
streetName: "chinchwad",
areaName: "thergaon",
city: "pune",
pinZip: "221003",
stateProvince: "maharastra",
country: "india",
shaded: "yes",
lat: null,
lon: null,
rate: "29",
status: "open",
availibility: "open",
contactNo: null,
id: "589704c2a924113eb8841952"
}, {
ownerName: "dubey",
houseNo: "s17/261",
streetName: "chinchwad",
areaName: "thergaon",
city: "pune",
pinZip: "221003",
stateProvince: "maharastra",
country: "india",
shaded: "yes",
lat: null,
lon: null,
rate: "29",
status: "open",
availibility: "open",
contactNo: null,
id: "58971125df1e11416e91ccc3"
}],
});
<table>
{{#each data as |obj|}}
<tr>
{{#each-in obj as |key value|}}
<td>{{value}}</td>
{{/each-in}}
</tr>
{{/each}}
</table>
{
"version": "0.11.1",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "2.11.0",
"ember-data": "2.11.0",
"ember-template-compiler": "2.11.0",
"ember-testing": "2.11.0"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment