<div @click=${this.click_cb.bind(this, record)}>${record.msg}<div>
Is this the correct way to pass an argument to a listener?
<div @click=${this.click_cb.bind(this, record)}>${record.msg}<div>
Is this the correct way to pass an argument to a listener?
You should also be able to do this
<div @click=${() => this.click_cb(record)}>${record.msg}<div>
© 2022 - 2024 — McMap. All rights reserved.