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", []);


<!DOCTYPE html>
<script src=""></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}}">

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



 User Name:  Mohd Aariz  Password:  Admin123