
(function(){
	'use strict';

	function getItems (item) {
    return item.getList();
  }; 

	angular.module('angularTDDSample.main', [
    'ui.router', 'angularTDDSample.item', 'angularTDDSample.itemList'
  ])
  .config(function config( $stateProvider ) {
        $stateProvider.state( 'main', {
          url: '/main',
          views: {
            "main": {
              controller: 'MainCtrl',
              controllerAs: 'vm',
              templateUrl: 'main/main.tpl.html',
              resolve: {
                itemListData: getItems
              }
            }
          },
          data:{ pageTitle: 'Main' }
        });
      });  

	angular
			.module('angularTDDSample.main')
			.controller('MainCtrl', MainCtrl);

	function MainCtrl (itemListData) {

		var vm = this;

		vm.items = itemListData.data;

		// item.getList().then(function(items){
		// 	vm.items = items;		
		// });
	}		

}());

@@ -820,85 +820,8 @@
 a;%0A%0A
-%09%09// item.getList().then(function(items)%7B%0A%09%09// %09vm.items = items;%09%09%0A%09%09// %7D);%0A
 %09%7D%09%09

remove commented code