Actions HTTP

Edit on GitHub

This document explains the Actions HTTP service in the Components Library.


Actions HTTP is an Angular Service that renders content via the HTML request.

Check out an example usage of the Actions HTTP.

Service configuration:

  • type—an action type.
  • url—an action request URL.
  • method—an action request method (GET by default).
        type: 'http',
        url: '/html-request',
        method: 'GET',

Service registration

Register the service:

declare module '@spryker/actions' {
    interface ActionsRegistry {
        http: HttpActionHandlerService;

    imports: [
            http: HttpActionHandlerService,
export class RootModule {}


Below you can find interfaces for the Actions HTTP:

export interface HttpActionConfig extends ActionConfig {
    url: string;
    method?: string;

export interface HttpActionResponse {
    actions?: ActionConfig[];