I am trying to utilize a library that I obtained from a bower repository.
Since it is not available in NPM, I am looking for ways to make it work and integrate it into my application. Here is what my structure looks like:
https://i.sstatic.net/RUhsA.png
I have attempted to treat it like any other library by importing it using:
import * as DX from 'bower_components/xtrareportsjs';
Furthermore, I have tried adding it as a script tag in the index.html or the angular-cli.json under scripts:
<script src="bower_components/xtrareportsjs/report-designer.js"></script>
However, it was not recognized in any of those instances.
Note: I want to reuse my file (similar to jQuery) rather than just executing it.
I came across old explanations about importing with system.JS, but this does not seem to apply to my situation.
Any suggestions?