diff --git a/app/views/includes/foot.jade b/app/views/includes/foot.jade index e4c8706..edca962 100755 --- a/app/views/includes/foot.jade +++ b/app/views/includes/foot.jade @@ -23,10 +23,12 @@ script(type='text/javascript', src='/js/directives.js') script(type='text/javascript', src='/js/filters.js') //Application Services +script(type='text/javascript', src='/js/services/blocks.js') script(type='text/javascript', src='/js/services/global.js') script(type='text/javascript', src='/js/services/index.js') //Application Controllers script(type='text/javascript', src='/js/controllers/index.js') script(type='text/javascript', src='/js/controllers/header.js') +script(type='text/javascript', src='/js/controllers/blocks.js') script(type='text/javascript', src='/js/init.js') diff --git a/public/js/app.js b/public/js/app.js index afb98d4..2b6bc68 100755 --- a/public/js/app.js +++ b/public/js/app.js @@ -1,6 +1,7 @@ 'use strict'; -angular.module('mystery', ['ngCookies', 'ngResource', 'ngRoute', 'ui.bootstrap', 'ui.route', 'mystery.system', 'mystery.index']); +angular.module('mystery', ['ngCookies', 'ngResource', 'ngRoute', 'ui.bootstrap', 'ui.route', 'mystery.system', 'mystery.index', 'mystery.blocks']); angular.module('mystery.system', []); angular.module('mystery.index', []); +angular.module('mystery.blocks', []); diff --git a/public/js/controllers/blocks.js b/public/js/controllers/blocks.js new file mode 100644 index 0000000..032b593 --- /dev/null +++ b/public/js/controllers/blocks.js @@ -0,0 +1,8 @@ +'use strict'; + +angular.module('mystery.blocks').controller('BlocksController', ['$scope', '$routeParams', '$location', 'Global', 'Blocks', function ($scope, $routeParams, $location, Global, Blocks) { + $scope.global = Global; + + // for avoid warning. please remove when you use Blocks + $scope.blocks = Blocks; +}]); diff --git a/public/js/services/blocks.js b/public/js/services/blocks.js new file mode 100644 index 0000000..e60ded2 --- /dev/null +++ b/public/js/services/blocks.js @@ -0,0 +1,5 @@ +'use strict'; + +angular.module('mystery.blocks').factory('Blocks', ['$resource', function($resource) { + return $resource; +}]);