I have a constants file constants.ts:
export const C0NST = \"constant\";
I access it in a service some.service.ts<
You can create a BaseComponent , it is a place where you should create your constant instances and then you can create your FooComponent extends BaseComponent and you can use your constants.