Please download the attached sample and follow the steps below.
In the .angular-cli.json we set up two scripts:
"scripts": [ "external-libs/skylink/skylink.complete.js", "external-libs/skylink/skylink.wrapper.js" ],
In the app.component.ts we declared the SkylinkWraper variable in the following way:
declare var SkylinkWrapper: any;
Steps to run the app:
- npm install
- Set up your application key in the private member of the AppComponent class.
- Run the ng serve --open
You may also wish to see our updated Support for Angular 5 article.