Monaca Onsen UI Discord Chat Github Repo

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

  • administrators

    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() {