Closed draylegend closed 3 years ago
How did you create the domains?
If I use
ng g @angular-architects/ddd:domain admin --directory web
I get a CompanyDomainModule
.
Closing this, as it seems like the discussion came to an end. Feel free to reopen on demand
By generating domains I get this folder structure:
Then I wanna import company and expert "modules". There're at least two ways to import:
import()
There is no problem with the lazy approach but with non lazy:
In the sample above I need to use aliases
as ExpertModule
andas CompanyModule
to be able to import both modules with the identical class name. We, devs, are pretty lazy and that approach compels us to add an extra alias for every lib/module name.What about class names that match the names passed in while generating a lib?