Top

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

Comentarios

3 comentarios

  • Sunny Singh

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

    0
    Acciones de comentarios 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
    Acciones de comentarios 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
    Acciones de comentarios Permalink

Iniciar sesión para dejar un comentario.

  • Pregunte a la Comunidad

    ¿Necesitas ayuda? Haz tus preguntas en la Comunidad para obtener respuestas de otros usuarios de Rainbow.

    Enviar un mensaje.