angular.module 引入新的module: 1. 在index.html中需要引入必须的js文件
2.
app.js:
angular.module('starter', ['ionic','starter.controllers'])
controllers.js:
angular.module('starter.controllers',[])
.controller('testCtrl',function ($scope,$state,$ionicPopup,$stateParams) {
...
index.html:
<head>
...
<script src="js/app.js"></script>
<script src="js/controllers.js"></script>
<script type="js/mvc.js"></script>
...
</head>