4

Scenario:

I have a component say, COMP which has to load either of the two templates, say, TEMPLATE_1 or TEMPLATE_2 based on the type of user logged in (Say, ADMIN user and NORMAL user).

How to do it using Angular 2 latest release?

Disclaimer: I am new to Angular 2.

3

1 Answer 1

1

You can do it using:

or

P.S. You get downvote because your question is too broad and you haven't shown what you've tried so far.

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.