1

I have a dynamic component, which is working with param (:pagename) its a dynamic page, I have some custom pages those are stored in Admin portal like I have customReport page on admin when I hit the URL with customReport, I call the Rest API on dynamic component and get response from API that contains like

result:[{html:Example,component:'component code here'}];

I want to bind that Html on dynamiccomponent.html and inject customReport.ts to use functions of this component.

1 Answer 1

1

Did you see this content? Angular Html Binding

<div [innerHTML]="html"></div>
Sign up to request clarification or add additional context in comments.

1 Comment

i know, but how to render component from API response.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.