Recently, I developed a JavaScript algorithm and now I'm looking to implement it in my ionic 2 application. My preference is to avoid the hassle of converting the entire algorithm to typescript. While I managed to run javascript in the index.html page successfully, I am encountering difficulty calling those functions from the .ts files.
I would appreciate any suggestions on integrating my js algorithm into my ionic 2 application, or should I consider transitioning to typescript altogether?
Thank you