Top

Are SDK for Web APIs supported in >=Angular 2 applications.

Comments

3 comments

  • Sunny Singh

    - A small correction in my question, the import files should be "rainbow-sdk.min.js" and "vendors-sdk.min.js"

    0
    Comment actions Permalink
  • Konrad Hyzy

    Hi Sunny Singh,

    To answer the main question- yes, SDK for Web is supported in Angular 2+ applications.
    In order to import the Rainbow SDK files, download a Starter Kit for Angular 2 from our GitHub repository (https://github.com/Rainbow-CPaaS/StarterKit-SDKWeb-Angular2) and follow the instructions from the README.md file.

    Once you've set up your project, you're ready to go.

    In order to use the APIs inside of your component .ts files, you need to add the given function to the sdk class (in /src/modules/sdk.ts) and then import it into your component.

    This approach works also with the latest version of Angular (Angular 7).

    Should you have any questions, do not hesitate to contact us.

    1
    Comment actions Permalink
  • Sunny Singh

    Hello Konrad Hyzy,

    Thank you for the information. Now I am able to consume the SDK for Web APIs in Angular 2+ apps.

     

    Regards,

    Sunny

    0
    Comment actions Permalink

Please sign in to leave a comment.

Still can't find what you need?

  • Contact Us

    Do you have any question about Rainbow? Leave us a message to get more information.

    Contact
  • Ask the Community

    Do you need help? Ask your questions to the Community and get answers from other Rainbow users.

    Post message