Angularjs: Error: [ng:areq] Argument ‘HomeController’ is not a function, got undefined
This creates a new module/app: While this accesses an already created module (notice the omission of the second argument): Since you use the first approach on both scripts you are basically overriding the module you previously created. On the second script being loaded, use var myApp = angular.module(‘myApp’);.