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.

Sangwin Gawande
  • 7,658
  • 8
  • 48
  • 66

1 Answers1

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.

Andrei Zhytkevich
  • 8,039
  • 2
  • 31
  • 45