AngularJS Module

In AngularJS, a module defines an application. It is a container for the different parts of your application like controller, services, filters, directives etc.

A module is used as a Main() method. Controller always belongs to a module.

# How to create a module

The angular object's module() method is used to create a module. It is also called AngularJS function angular.module