adspace


What is $inject in angularjs?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Give the example of angularjs strings?

874


How to enable html5 mode in angular 1.x?

924


How to get and log an error in angular 4?

874


How to use primeng in angular 4?

947


How can primeng be used with angular2?

943


How to implement a datagrid table with angular 2 and primeng?

889


How an object or function can get a hold of its dependencies?

852


What is the latest angular?

808


Angularjs dependency injection of value inside of the module.config?

892


How to create angularjs filter which outputs html?

860


What is a dynamic route in angularjs and how do you implement it?

861


What is the latest version of angular?

977


Which version you are using js?

946