Skip to content

ToHistoryOptionsPipe

Methods

transform()

This method transforms a given component into an object with a cmp property and a watch property.

Parameters:

  • cmp — The component to transform. It can be of type AIPEmailBuilderBlock, AIPStructure, or AIPEmailBody.

Returns:

  • An object of type IIPOptionsHistoryContext<Record<string, any>> with the cmp property set to the given component and the watch property set to an empty object.

Usage

Here’s an example:

<my-component [ipEmailBuilderHistoryHost]="myComponent | toHistoryOptions"></my-component>

To use the toHistoryOptions pipe, simply apply it to your component and bind the output to the ipEmailBuilderHistoryHost directive.