Is there a way to pass the HTML element attribute clientHeight directly in my HTML as opposed to going through this route in my event triggered function
How I'm currently acheiving this
function myFuntion() {
const element = document.getElementByID("myElement");
const elementHeight = element.clientHeight;
}
What I'd really like to be able to do is something like this in my HTML
<div id="myElement" (onEvent)="myFunction(clientHeight)"></div>
This is probably something super obvious so my apologies if it is!