Is it possible to dynamically define the base path of two versions of each template in order to use one or the other through configuration?
How can I declare TEMPLATES_PATH
so that it can be implemented as shown below:
component.ts
@Component({
templateUrl: TEMPLATES_PATH + 'template1.html';
})
I attempted to create a constant in my root file, but when I import it, it seems to have no value. Could I be importing or declaring it incorrectly?
root.ts
export const TEMPLATES_PATH = './somepath/'
component.ts
import {TEMPLATES_PATH} from "../../boot";