angular.module(name, deps) registers controllers, services, directives, and config blocks for one app boundary.
Important interview questions and answers
- Q: Why does this matter?
A: angular.module(name, deps) registers controllers, services, directives, and config blocks for one app boundary.
Self-check
- Summarize ngModule basics in one sentence.
- What would you try next in the playground?
Tip: Retrieve an existing module with angular.module('name') (no second arg)—passing [] twice throws “module already exists”.