0

i'm working on designing Angular Universal project and i want to get some stand alone html into my component and use it as view so that user will be able to edit template without dev efforts.

In just Angular 2+ it's possible to get external template in this way: Angular4 Load external html page in a div

Will it be possible to implement similar thing using Angular Universal?

1 Answer 1

1

Yes, you should be able to do exactly the same thing. Angular universal executes ajax calls and wait for components to be rendered before executing.

Like mentionned in the link you provided, you may need to use DomSanitizer if the html contains css

Sign up to request clarification or add additional context in comments.

Comments

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.