<app-comp>
<div class="box">
<div class="appleA" equalizeHeight [equal-height-id]="'a1'"></div>
</div>
<div class="box">
<div class="appleB" equalizeHeight [equal-height-id]="'a1'"></div>
</div>
</app-comp>
Here I am trying to make a directive, which is called 'equalizeHeight', and I hope it will work like :
"If there is another element(within same component) that has 'equalizeHeight' directive and with same input 'equal-height-id' value, then equalize their height."
Is it possible?
I tried but got stuck on how to access another element (which has same directive on it) :(