angularJS 怎么把controllers.js里面的controller拆分成一个个独立的js文件?

情况是这样的:
这个controllers.js 文件中写了很多组件的controller。我想把组件的controller都拆分,分别放入对应的js里面,例如,下面的homeCtrl,我就想放入一个homeCtrl.js里面,这该怎么操作?
我按照github里面很多人的angularjs项目的文件去分,失败了。

`var app = angular.module('app', ['ngCookies', 'ui.router', 'ngFileUpload', 'tm.pagination']);
//路由配置
app.config(function($stateProvider, $urlRouterProvider){
   $stateProvider
   .state("home",{
 url: '/home',
 cache: false,
 template: '<div class="container"><div class="jumbotron"><h1></h1></div></div>',
 controller: "homeCtrl"
 })
   $urlRouterProvider.otherwise("home");
})

//清除templateUrl缓存
 app.run(function($rootScope, $templateCache){
        $rootScope.$on('$locationChangeStart', function(event, next, current){
         if(typeof(current) !== 'undefined'){
          console.log(current);
          $templateCache.remove(current);
          $templateCache.remove(current.templateUrl);
      }
      })
 })

 // 组件controller
 app.controller('homeCtrl', function ($http, $scope,$state, TipService) {
 
 // xxxxxxxxxxxx
 })
 
 .
 .
 .
 ...`