Base solution for your next web application
Open Closed

Injector vs Automated Dependency Injection #2876


User avatar
0
antonis created

Hi,

Why do you use explitic Injector in angular 2 project. As angular suggests it is better to "leave the Automated Dependency Injection do its job"

Thanks


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Yes, most of the time it is suggested in that way. We use it to extend our components with a base component <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/master/angular/src/shared/common/app-component-base.ts">https://github.com/aspnetzero/aspnet-ze ... nt-base.ts</a>.