Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function renderComponent(html, component, providers, prebootOptions) {
return renderToStringWithPreboot(component, providers, prebootOptions).then((serializedCmp) => {
const selector: string = selectorResolver(component);
return html.replace(selectorRegExpFactory(selector), serializedCmp);
});
}