I got a Ionic layout from a coworker. I’m not 100% familiar with typescript and angular v2. I can work in her layout but I fail at just including an local JS file (i.e
So the main goal is: include a local (read: in the src-folder) JS file in a .ts file (i.e a component) without setting of any linting alarms.
I tried a number of things, including:
"allowJs": true,to tsconfig.json
- Fiddling around with the .ts file where I require the file (I keep getting linting errors I can’t seem to ignore).
Doing a Google search returns out nothing. Please help, I took more time solving this than actually building the functions themselves