How to add a function to the Jovo object in a Hook and have this inside the method be the Jovo object


I want to create a hook for ‘after.platform.init’ and in the hook add a function foo(value) to the object. In the function, I want to access this.ask or this.$session.$data.

Later in a handler, I want to be able to call the function:'hello')

Do you have a sample?


Hey @marktucker

Add this to your app.js (or anywhere else in the global context): = function(value: string) {