AngularJS DI resolves $http, $route, and custom services by name in constructor arrays.
Important interview questions and answers
- Q: Why does this matter?
A: AngularJS DI resolves $http, $route, and custom services by name in constructor arrays.
Self-check
- Summarize Dependency injection in 1.x in one sentence.
- What would you try next in the playground?
Tip: Minified builds need $inject arrays or ngAnnotate—never rely on parameter names alone.
Interview prep
- Why array notation in DI?
Survives minification—parameter names are not reliable after build.