@kontent-ai/core-sdk-angular-http-service
TypeScript icon, indicating that this package has built-in type declarations

5.0.5 • Public • Published

Build GitHub license Discord GitHub issues

Angular Http service

This is an implementation of the IHttpService that can be used instead of the default http service available in Core package that uses axios package.

This library uses Angular's HttpClient to make http requests and can be used only in Angular applications.

Why and when should you use this library?

If you need to use server side rendering with prerender using Angular universal, you have to use Angular's built-in Http service because otherwise Angular will not wait until the requests are fetched from server and therefore your code would not be reflected in HTML of your page.

Example

import { AngularHttpService } from '@kontent-ai/core-sdk-angular-http-service';

const deliveryClient = new DeliveryClient({
      projectId: 'xyz',
      httpService: new AngularHttpService()
    });

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @kontent-ai/core-sdk-angular-http-service

    Weekly Downloads

    92

    Version

    5.0.5

    License

    MIT

    Unpacked Size

    100 kB

    Total Files

    12

    Last publish

    Collaborators

    • pokornyd
    • jiri-lojda
    • ivannk
    • enngage