top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the use for Dependency Injunction in Angular?

0 votes
472 views
What is the use for Dependency Injunction in Angular?
posted Feb 23, 2018 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Dependency Injection (DI) is a way to create objects that depend upon other objects. A Dependency Injection system supplies the dependent objects (called the dependencies) when it creates an instance of an object.
Dependency Injection (DI) was a core feature in Angular 1.x, and that has not changed in Angular 2. DI is a programming concept that predates Angular. The purpose of DI is to simplify dependency management in software components.

answer Apr 30, 2018 by Chahat Sharma
...