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,$stateParam…