Loading the Aws-Iot-sdk npm package.

207 views
Skip to first unread message

Mendel Jacks

unread,
Jul 18, 2016, 12:44:14 AM7/18/16
to AngularJS
I'm struggling to load the aws-iot-device-sdk npm module into my Angular 2 project.

I've npm installed, and added a script tag to my index.html, but I'm not sure exactly which file to include in the script tag.
I tried browserifying the whole module and including, and I also tried to include the path reference into SystemJS.
I followed a post about importing external libraries, but aws-iot-device-sdk seems to have a strange structure.

Any help is greatly appreciated :) 

Sander Elias

unread,
Jul 18, 2016, 11:40:07 AM7/18/16
to AngularJS
Hi Mendel,


After you created a bundle out of it, load it in the global scope of the browser, and use it like that. There are better/neater solutions, but those are still a bit hard to implement. 

Regards
Sander
Reply all
Reply to author
Forward
0 new messages