According to Angular Doc - “The angular.module is a global place for creating, registering and retrieving AngularJs modules. All modules ( AngularJs core or 3rd party) that should be available to an application must be registered using this mechanism”. “Passing one argument retrieves an existing angular. module , whereas passing more than one argument creates a new angular.module”. Syntax of AngularJs Module looks like: – var app = angular.module( "MyApp" , []); //The above (with [] module) is indicate that this setter function it’s used for register a module. var app = angular.module( "MyApp" ); //The above (without [] module) is indicate that this is getter function and it’s used for retrieve a previously registered module. The AngularJs module is a container for applications and the controllers always belong to a module. Also, an AngularJs module defines an application. Methods of Angular Modules :- 1. info([inf...
Angular, React, JavaScript, Java, PHP, SQL, C#, Vue, NodeJs, TypeScript and Interview Questions Answers