Explain the need for di in angularjs?
Answer / Anurag Varshney
The need for Dependency Injection (DI) in AngularJS arises from the principle of separating concerns. By using DI, AngularJS allows you to create loosely coupled components that are easy to test and maintain. This is achieved by having AngularJS manage the creation and injection of objects into other objects as needed.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is json web token in angularjs?
What are decorators in angular?
What are the different types of directives?
What is ng-content directive in angular?
How to use angular datepicker in angular 5/4 applications?
How can you decrease the digest cycle time?
How long will it take to learn angularjs?
How to get the data from db?
Did you use scss?
How to use the css binding in angular js?
What is ngfor in angular?
Can't bind to ngmodel since it isn't a known property of input?