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:

  1. npm install
  2. Set up your application key in the private member of the AppComponent class.
  3. Run the ng serve --open


Other articles you may be interested in: Support for Angular 5