There is one scenario in my project, Consider, I have one testDynamic component
@Component({ templateUrl: \"./test-dynamic.html\", // Need to override this f
refer the following link, this is a good example of dynamic templateUrl
Angular 2/4 component with dynamic template or templateUrl