How to use useClass with Tree Shakable Services in Angular

added by DotNetKicks
6/23/2020 4:19:43 PM

568 Views

Recently, I was asked that how can we use providers such as useClass inside a Tree Shakable service? By default, Angular services are tree shakable, which means if the application does not use them, they are not part of the final bundle. So, if you create a service using CLI as, ng g s Log...


0 comments