To define module and controller in Angular Js app we used the syntax defined by the Angular Js are given as below
How to define module in Angular Js
The module function is defined by the angular js and it requires the two necessary arguments. First on is type string and it is the name of your module and second is type of array of dependencies used in the module or in application.
How to define controller in Angular js
The controller function is also defined by angular js and is also required two arguments first one is string type and this is the name of controller and other on is callback function
Here is the codepen working example