Home > widget-integration > PredictiveBundleController > prepareRenderedBundle
PredictiveBundleController.prepareRenderedBundle() method
Calculates bundle state and renders markup once so it can be reused across multiple targets.
Signature:
protected prepareRenderedBundle(bundle: PredictiveBundleData): Promise<{
data: PredictiveBundleData;
html: string;
}>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
bundle |
Bundle payload to prepare. |
Returns:
Promise<{ data: PredictiveBundleData; html: string; }>
Prepared bundle state and rendered HTML.