Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

Aptitude | AngularJS Quiz | Set-2 | Question 7

  • Last Updated : 20 Sep, 2021

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);

Answer: (C)

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

My Personal Notes arrow_drop_up
Recommended Articles
Page :