I'm using angular 4.3, typescript 2.2
I want to create multiple applications (websites) based on the same codebase. All websites will be pretty much identical, but some of them might have some additional/different logc/templates.
My idea is to create a core Module (containing mainly components), and then have the applications use that module to build upon it, and overload as needed: - the styles - the templates (replace completely the template, or just modify a part of it)
- How can I override the components used in the core module?
I only managed to override the components wich are used explicitely in the routing, but I cannot override child components called directly in the templates of the Core module. Do I need to inject these components dynamically?
- When inheriting a component, is it possible to only override part of the parent template?
I guess each template part that needs to be overriden would have to be changed to a component in the core module (and then back to question #1 to use inherited component in the child apps)
Thanks