I have a parent component and child component where I am using child component's selector to render it in parent component.
my child component html:
<div class="main-container" [ngStyle]="{'transform': 'scaleX(widthScale) scaleY(heightScale)'}">
<img src="../../assets/svg/kiln-main.jpg" class="kiln-image">
<svg id="area2"></svg>
<svg id="area"></svg>
</div>
child component ts:
@Input() widthScale:string;
@Input() heightScale:string;
I want to apply "transform:scalex() scaley()" to child based on the values from the parent.
my parent:
<app-child [widthScale]="0.5" [heightScale]="0.5"></app-child>
The above code somehow isnt working.How to apply values to css property "transform" here?