Select from following answers:- It creates an application module

- It invokes an application module
- It destroys an application module
- All Above
The angular.module is a global place for creating, registering and retrieving Angular modules. All modules that should be available to an application must be registered using this mechanism.
e.g. //creating an application module
var employeeAppModule = angular.module("employeeApp", []);
Since AngularJS follows modular approach, so the modules are used to separate the logics like services, controllers, application etc. This on the other hand keep the code clean.
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator