I am facing one issue in angular 2 where I need to load HTML page based on user type is Admin or client user. The component file contains same functions and I don't want to repeat .ts file with same functions and handling the same event, but the HTML is different. I want to assign templateUrl based on user type.
templateUrl: './clientOperation-component.html'
With the above sample code I want to load templateURL based on a condition is it the Admin or client.