1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

Fix use static data from route

This commit is contained in:
Markus Grigull 2015-09-26 16:41:56 +02:00
parent 63a27d294c
commit 0711372904
2 changed files with 11 additions and 11 deletions

View file

@ -6,11 +6,13 @@ export default Ember.Route.extend({
let properties = [
{
name: "voltage",
value: 2.3
value: 2.3,
type: "kV"
},
{
nane: "current",
value: 1.6
name: "current",
value: 1.6,
type: "A"
}
];

View file

@ -4,13 +4,11 @@
<th>Name</th>
<th>Value</th>
</tr>
<tr>
<td>Voltage</td>
<td>2.34 kV</td>
</tr>
<tr>
<td>Current</td>
<td>7.6 A</td>
</tr>
{{#each model as |property|}}
<tr>
<td>{{property.name}}</td>
<td>{{property.value}} {{property.type}}</td>
</tr>
{{/each}}
</table>
</section>