Is there a way to make my element expand conditionally? I would like it to expand on click based on the height of its content.
This is what the component's HTML looks like:
<div class="container" [style.height]="enlarged === true ? '120px' : '50px'">
<div class="textContainer">
<ion-label>
Welcome </ion-label>
<ion-label>{{ content}}</ion-label>
</div>
</div>