Fateh Mohamedon Stack Overflow • Recommends
On “Benefits of Angular libraries vs Angular modules in a monorepo? NX architecture”
NX recommends that you put more than 90% of your code in libs and the the purpose of those libs is not only sharing code between the different applications we can create an lib even if the code is not shared and use app folders only for configurations like routings and environments.
we have to mention the benefits of separating your code into small units (libs) that you can test and build them individually .
so in your case it can be a lib that can be lazy loaded into your app it can manage it's own routes, here is the list of libs types taken from their book
Feature libraries: Developers should consider feature libraries as libraries that implement smart UI (with injected services) fo…