Aptitude | AngularJS Quiz | Set-2 | Question 7
Which of the following is the correct syntax for the create module in angularJs ?
(A) ar myModule= module();
(B) var myModule= new Module();
(C) angular.module(“app”, );
(D) var Module= new Module(my);
Explanation: The module is used for defining the angular application. For creating modules in angular the syntax is used as angular.module(“app”, ); Here angular.module means it creates the application module and it takes two parameters one is “app”, the app is the name of modules and another one is the array() of dependent modules.
Quiz of this Question
Please comment below if you find anything wrong in the above post