Use let instead of deprecated #variable
This commit is contained in:
@@ -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 xmlns="http://www.w3.org/2000/svg" [attr.viewBox]="viewBox" height="100%" width="100%">
|
||||||
<svg:g [attr.transform]="transform" [attr.fill]="fill">
|
<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"
|
[coverages]="module.coverages"
|
||||||
[keyboardKeys]="module.keyboardKeys"
|
[keyboardKeys]="module.keyboardKeys"
|
||||||
[attr.transform]="module.attributes.transform"
|
[attr.transform]="module.attributes.transform"
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ import {Mapper} from '../utils/mapper';
|
|||||||
selector: 'g[svg-module]',
|
selector: 'g[svg-module]',
|
||||||
template:
|
template:
|
||||||
`
|
`
|
||||||
<svg:path *ngFor="#path of coverages" [attr.d]="path.$.d"/>
|
<svg:path *ngFor="let path of coverages" [attr.d]="path.$.d"/>
|
||||||
<svg:g svg-keyboard-key *ngFor="#key of keyboardKeys; #i = index"
|
<svg:g svg-keyboard-key *ngFor="let key of keyboardKeys; let i = index"
|
||||||
[id]="key.id"
|
[id]="key.id"
|
||||||
[rx]="key.rx" [ry]="key.ry"
|
[rx]="key.rx" [ry]="key.ry"
|
||||||
[width]="key.width" [height]="key.height"
|
[width]="key.width" [height]="key.height"
|
||||||
|
|||||||
Reference in New Issue
Block a user