C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
Java
Learn iOS Programming
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
4
Reply
What is use of @Injector in Angular
Manav Pandya
7y
1.8k
1
Reply
Delete Row
Delete Column
Insert Link
×
Insert
Cancel
Embed YouTube Video
×
Width (%)
Height (%)
Insert
Cancel
Table Options
×
Rows
Columns
First row as header
Create Table
Insert Image
×
Selected file:
Alignment
Left
Center
Right
Select an image from your device to upload
Upload to Server
Cancel
Submit
injector is used to retrieve object instances as defined by provider, instantiate types, invoke methods, and load modules.
Asad Ilyas
7y
1
injector is used to retrieve object instances as defined by provider, instantiate types, invoke methods, and load modules.
Asad Ilyas
7y
1
injector is used to retrieve object instances as defined by provider, instantiate types, invoke methods, and load modules.
Asad Ilyas
7y
1
A service can be dynamically injected (by name) into a controller using the $injector. Being able to inject services via controller arguments is just a convenience that Angular provides. Under the hood, the $injector is used by Angular to retrieve object instances. But we can use the $injector ourselves also.function MyCtrl($scope, $injector) {$scope.doSomething = function(someService) {var service = $injector.get(someService) // someService contains the name of a serviceservice.value += 10 }https://stackoverflow.com/questions/14415845/angularjs-dynamically-inject-scope-or-controller/14418384#14418384https://docs.angularjs.org/api/auto/service/$injector
Jaipal Reddy
7y
1
Explain AngularJS Digest Cycle in brief.
When to use prefix $ and when $$ in Angular?
Message