Consider a scenario in my project where I have a testDynamic component.
@Component({
templateUrl: "./test-dynamic.html", // This file needs to be overriden
styleUrls: ['./test-dynamic.css']
})
export class testDynamic {
constructor() { }
}
In this situation, I need to check if an override1.html file exists in the override folder. If it does, then load this file as the templateUrl; otherwise, load the default test-dynamic.html for the component. Do you have any ideas on how to achieve this?
Please refer to the following image for better understanding: