If there are two javascript methods A() and B() in same LWC component, is it possible to call method B() from A() where Function A() gets called with click of button? If not what can be the possible workaround for this?
If there are two javascript methods A() and B() in same LWC component, is it possible to call method B() from A() where Function A() gets called with click of button? If not what can be the possible workaround for this?
Best Answer
Yes, use
this
to access other methods: