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:
parent
63a27d294c
commit
0711372904
2 changed files with 11 additions and 11 deletions
|
@ -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"
|
||||
}
|
||||
];
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue