Interviewer And Interviewee Guide

AngularJS Developer Interview Question:

Tell me how angular.module works?

Submitted by: Muhammad
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.
Submitted by: Muhammad

Read Online AngularJS Developer Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.