Wondering what’s next for npm?Check out our public roadmap! »

    This package has been deprecated

    Author message:

    Package moved to @kentico/kontent-angular-http-service

    TypeScript icon, indicating that this package has built-in type declarations

    3.0.0 • Public • Published

    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. You can find more information about the issue here


    First, you need to import AngularHttpServiceModule module into your AppModule (or other module depending on your architecture) and then you can inject AngularHttpService just as you are used to in Angular.

    import { AngularHttpServiceModule } from 'kentico-cloud-angular-http-service';

      imports: [
        // other imports
      providers: [],
      bootstrap: [AppComponent]
    export class AppModule { }

    and example taken from a component:

      private readonly deliveryClientIDeliveryClient;
      constructor(angularHttpServiceAngularHttpService) {
        this.deliveryClient = new DeliveryClient({
          projectId: 'da5abe9f-fdad-4168-97cd-b3464be2ccb9',
          httpService: angularHttpService


    npm i kentico-cloud-angular-http-service

    DownloadsWeekly Downloads






    Unpacked Size

    149 kB

    Total Files


    Last publish


    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar