Top

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

Commentaires

3 commentaires

  • Sunny Singh

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

    0
    Actions pour les commentaires Permalien
  • 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
    Actions pour les commentaires Permalien
  • 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
    Actions pour les commentaires Permalien

Vous devez vous connecter pour laisser un commentaire.

  • Demandez à la Communauté

    Vous avez besoin d'aide? Posez vos questions à la Communauté et obtenez des réponses d'autres utilisateurs Rainbow.

    Poster un message