todo icon indicating copy to clipboard operation
todo copied to clipboard

Vue "this" issue

Open bshorrosh opened this issue 5 years ago • 1 comments

Suggest to update the mounted code to include the following, which fixes the "this" reference inside Wails.Events...

mounted() { let that = this Wails.Events.On("filemodified", () => { that.loadList(); }); Wails.Events.On("error", (message, number) => { let result = number * 2; that.setErrorMessage(${message}: ${result}); }); // Load the list at the start that.loadList(); }

bshorrosh avatar Jun 22 '20 01:06 bshorrosh

Happy to accept a PR!

leaanthony avatar May 31 '21 22:05 leaanthony