What is $inject in angularjs?



What is $inject in angularjs?..

Answer / Pushkar Singh Nabiyal

$inject is a mechanism in AngularJS for Dependency Injection. It allows the framework to automatically inject services and other dependencies into controllers, factories, and services.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What angularjs 7?

1 Answers  


When do I add components to entrycomponents?

1 Answers  


What is code splitting?

1 Answers  


Why should I use angular 7?

1 Answers  


What is subscribe in angular?

1 Answers  


What is a template reference variable?

1 Answers  


What is * ngfor?

1 Answers  


Please explain angular elements?

1 Answers  


What is ngzone used for?

1 Answers  


Is mvc front end or backend?

1 Answers  


How would you create a component to display error messages throughout your application?

1 Answers  


What are the different types of directives?

1 Answers  


Categories