Can any one guide or suggest how to resolve this below issue. Use Case: Trying to implement notification component Scenario: I am trying to call a method or change the state of the data on triggering of event in Vue. I have defined the event listener on mounted function and trying to access one of the method.
Basically, the alert within event function is getting triggered, where as alert inside method is not getting triggered, and even any data manipulation is not executing even with in event function.
Where am i missing? is it incorrect to alter state within Event listener? Basically i am trying to implement notification feature which automatically disappear after few seconds
Any help is appreciated.
Thanks, Girish