What you have done currently is "declared" two modules app
and module
.
When angular bootstraps, you have asked it to bootstrap with app
. So now your application bootstraps with app
but the app
has no reference to your other module ( which is module
! ).
So, you will have to either bootstrap your application with app
and specify a dependency on module
or bootstrap your application with a totally new module and specify a dependency on app
and module
.
This is how you define a dependency
angular.module('app',['module']);
If you want to create a totally new module and specify both as dependencies
angular.module('myApp',['app','module'])
Note : if you create a totally new module, you will have to bootstrap your angular application with this new module..
<html ng-app="myApp"...