Use let instead of deprecated #variable

This commit is contained in:
József Farkas
2016-04-29 20:21:47 +02:00
parent d0c085d95e
commit a03588cc02
2 changed files with 3 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ import {UhkConfiguration} from '../../config-serializer/config-items/UhkConfigur
`
<svg xmlns="http://www.w3.org/2000/svg" [attr.viewBox]="viewBox" height="100%" width="100%">
<svg:g [attr.transform]="transform" [attr.fill]="fill">
<svg:g svg-module *ngFor="#module of modules; #i = index"
<svg:g svg-module *ngFor="let module of modules; let i = index"
[coverages]="module.coverages"
[keyboardKeys]="module.keyboardKeys"
[attr.transform]="module.attributes.transform"

View File

@@ -10,8 +10,8 @@ import {Mapper} from '../utils/mapper';
selector: 'g[svg-module]',
template:
`
<svg:path *ngFor="#path of coverages" [attr.d]="path.$.d"/>
<svg:g svg-keyboard-key *ngFor="#key of keyboardKeys; #i = index"
<svg:path *ngFor="let path of coverages" [attr.d]="path.$.d"/>
<svg:g svg-keyboard-key *ngFor="let key of keyboardKeys; let i = index"
[id]="key.id"
[rx]="key.rx" [ry]="key.ry"
[width]="key.width" [height]="key.height"