Question: what is the difference between module and controller in angularjs?
Answer: Module is used to group different components such as controller,directives.It is type of grouping mechanism. Controller is a JavaScript object.It acts as the intermediary or glue between the view and model. You set the $scope properties ,which is type of viewmodel,in the controller. ... js and Angular.