In my previous question, I understand that the code var app = angular.module(\'myApp\', []); connects the module app to the view myApp.
var app = angular.module(\'myApp\', []);
app
myApp
Angulars API says Passing one argument retrieves an existing angular.Module, whereas passing more than one argument creates a new angular.Module https://docs.angularjs.org/api/ng/function/angular.module
Passing one argument retrieves an existing angular.Module, whereas passing more than one argument creates a new angular.Module