AngularJS Developer Question:
Download Job Interview Questions and Answers PDF
Tell me how angular.module works?
Answer:
angular.module is used to create AngularJS modules along with its dependent modules. Consider the following example:
var mainApp = angular.module("mainApp", []);
Here we've declared an application mainApp module using angular.module function. We've passed an empty array to it. This array generally contains dependent modules declared earlier.
var mainApp = angular.module("mainApp", []);
Here we've declared an application mainApp module using angular.module function. We've passed an empty array to it. This array generally contains dependent modules declared earlier.
Download AngularJS Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
What is orderby filter? | Explain me what is factory method? |