diff --git a/src/client/app.js b/src/client/app.js index 3004ddf2..7ec15e04 100644 --- a/src/client/app.js +++ b/src/client/app.js @@ -6,6 +6,7 @@ import Document from './components/Document'; import Award from './components/Award'; import GalleryItem from './components/GalleryItem'; import TeamMemberProfile from './components/TeamMemberProfile'; +import AppController from './controllers/AppController'; import api from './api/api'; let deps = [ @@ -104,6 +105,7 @@ app.run(($location, $rootScope, $http) => { Award, GalleryItem, TeamMemberProfile, + AppController, function (app) { app.controller('SchedulePageController', ($scope) => { $scope.pageClass = 'page-schedule'; @@ -112,9 +114,5 @@ app.run(($location, $rootScope, $http) => { app.controller('DocsPageController', ($scope) => { $scope.pageClass = 'page-docs'; }); - - app.controller('AppController', ($scope, menu) => { - $scope.menuProvider = menu.items; - }); } ].map(i => i(app)); \ No newline at end of file diff --git a/src/client/controllers/AppController.js b/src/client/controllers/AppController.js new file mode 100644 index 00000000..ec3eddba --- /dev/null +++ b/src/client/controllers/AppController.js @@ -0,0 +1,5 @@ +export default function (app) { + app.controller('AppController', ($scope, menu) => { + $scope.menuProvider = menu.items; + }); +}; \ No newline at end of file