Dependency injection in AngularJS is a way to manage dependencies between components by injecting services into controllers or other components, making code modular and testable.