I have a javascript file that contains some data manipulation functions (No DOM manipulation at all) such as float rounding, mathematical operations, ...etc
my js fi
Another way is to add your js functions defined in a separate file to a global scope. So in your js file you can add sth like this:
$(document).ready(function() {
window.example = example;
}
Then in your component typeScript file, right below the imports, you can declare this function:
declare function example(input): void;
And then you can just simply use this function in the component methods.