How to use script in Angular

519 Views Asked by At

When I write native HTML file, I can include this script that include uids object

<script src="https://rawgit.com/cornerstonejs/cornerstoneWADOImageLoader/master/examples/dicomfile/uids.js"></script>

Then I can use this uids referenced from script, like in this line

uids[value];

but how can I use this script in Angular? I put the script tag in index.html, then when I try to use uids in app.component.ts, it doesn't recognize it; saying Cannot find name 'uids'.ts

any idea?

0

There are 0 best solutions below