Module - a container for the different parts of an app including controllers, services, filters, directives which configures the Injector means Modules are used to separate logics of services, controllers, application etc. and keep the code clean. We can access modules via angular.module("myApp", []);

Example:

<!DOCTYPE html>
<html>
<body>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>

<div ng-app="myApp" ng-controller="myCntrl">
User Name: <input style="background-color:red" text="" value="{{userName}}">
Password: <input style="background-color:green" text="" value="{{password}}">
</div>

<script>
var app = angular.module("myApp", []);
app.controller("myCntrl", function($scope) {
    $scope.userName = "Mohd Aariz";
    $scope.password = "Admin123";
});
</script>



</body>
</html>

Output:

 User Name:  Mohd Aariz  Password:  Admin123