Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
Event click not working on item list
-
Hi guys,
I am trying out onsen ui with angular 8, but when I create a click event in the item list it can’t call my function. can anyone help me
-
It should work just as normal by defining
click
on the list item:<ons-list-item (click)="hey()">Item A</ons-list-item>
And then putting the function in your component:
export class AppComponent { hey() { console.log('hello'); } }