I am trying to import dymo.connect.framework into my Angular project. I'm trying to follow the SDK support of dymo. They only explain this for JavaScript. I also followed this explanation.
Unfortunately, there is not a lot information on this to be found yet. I downloaded their dymo.connect.framework.full.js from GitHub, and placed it inside my assets like this: assets/js/dymo/dymo.connect.framework.full.js.
Afterwards, I tried to import it in my component like this:
import "../../assets/js/dymo/dymo.connect.framework.full";
But I am unable to use it. How can I use this JavaScript asset inside my component.ts? How do I import it and declare it?
UPDATE:
added the framework in my scripts from angular.json as suggested.
"scripts": [
"node_modules/bootstrap/dist/js/bootstrap.bundle.min.js",
{
"input": "src/assets/js/dymo/dymo.connect.framework.full.js",
"bundleName": "dymo"
}
]
Use
scriptssection ofangular.json. (See)You will have to find corresponding
d.tsfile or create your own or just use asany: