Dhananjay Kumar

Teacher, Founder geek97 | India

"Dhananjay Kumar is the founder of , a community of vibrant developers, and organizes one of the world’s largest Angular conference, ng-India.

Dhananjay is the winner of 11 Microsoft MVP Awards, GDE in Angular, and recognized as Progress Telerik Ninja. "

Topic: Simplifying Dependency Injection in Angular

Description: Dependency Injection is one of the most famous architecture patterns to create a scalable application that has loosely coupled entities such as classes. Application made using the DI pattern is highly loosely coupled, and any part such as the business logic layer of application can be replaced at the run time without affecting the presentation layer. By design Angular framework supports dependency injection. It enables you to inject dependencies such as services without writing your own DI container or referring to any third-party libraries. You create a service in Angular to share data and operations between components, directives, etc. Mainly services are used to achieve separation of concerns and reusability. You keep operations such as API calls, logging, client-side data manipulations, etc. in a service. One of the significant purposes of creating a service is to keep component clean that focuses on user interaction and presentations. So, if you create an object of services directly inside a component, then components and services are tightly coupled, and so Angular by design avoids that. In this deep dive talk, you will learn about DI in Angular. This talk will cover in detail the various level of Providers and Injectors. You will learn, 1. How to create a tree-shakeable singleton service 2. Inject a service in lazy-loaded modules with ‘any’ 3. Real-time examples of various providers This talk is a live coding talk with no PPT. The biggest take away from the talk would be, how to use Angular inbuilt DI to create better performant Angular application.