1

I want to load components dynamically which means I don't know which component to load during compile time. I have read about DynamicComponentLoader here but the angular2 Api docs says this class is deprecated, so what is the current/correct way to do this?

1

1 Answer 1

1

Use ComponentResolver and ViewContainerRef as a replacement for DynamicComponentLoader

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.