With “methods in index.html” you mean code that is set up there?
There is no “script boundary” in Needle Engine, one of the main advantages. All is in javascript module scope. So you can call code much more flexible as with jslib
Can you tell a bit more what you want to do? Do help properly that would be helpful
My understanding is:
you have a component on an object
something happens (e.g. something is clicked) and you want to call a method that is in a module somewhere else entirely (e.g. a js file referenced from index.js or directly in index.js)
Okay, I have a button and I can detect click on that button. I want to call js method inside index.html file when button clicked. Simple console.log is enough for testing
Here’s one way - it’s just JavaScript, there’s no artificial boundaries, as long as your script tag in the index.html comes before the needle engine code your code will be available anywhere.