ContactsController ES6 refactoring

This commit is contained in:
tmshv committed 2016-02-22 02:26:58 +03:00
1 parent 33b4d0be22
commit a29faf2ef1
2 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -13,6 +13,7 @@ import HomeController from './controllers/HomeController';
import TeamController from './controllers/TeamController'; import TeamController from './controllers/TeamController';
import DocumentsController from './controllers/DocumentsController'; import DocumentsController from './controllers/DocumentsController';
import CopyrightController from './controllers/CopyrightController'; import CopyrightController from './controllers/CopyrightController';
import ContactsController from './controllers/CopyrightController';
import RemoveHashtags from './filters/RemoveHashtags'; import RemoveHashtags from './filters/RemoveHashtags';
import RemoveNewline from './filters/RemoveNewline'; import RemoveNewline from './filters/RemoveNewline';
import Strip from './filters/Strip'; import Strip from './filters/Strip';
@@ -105,7 +106,6 @@ app.run(($location, $rootScope, $http) => {
require('./ui/timeline'), require('./ui/timeline'),
require('./pages/schedule'), require('./pages/schedule'),
require('./pages/gallery'), require('./pages/gallery'),
require('./controllers/ContactsController'),
MainMenu, MainMenu,
Breadcrumbs, Breadcrumbs,
Document, Document,
@@ -117,6 +117,7 @@ app.run(($location, $rootScope, $http) => {
TeamController, TeamController,
DocumentsController, DocumentsController,
CopyrightController, CopyrightController,
ContactsController,
function (app) { function (app) {
app.controller('HomePageController', ($scope) => { app.controller('HomePageController', ($scope) => {
$scope.pageClass = 'page-home'; $scope.pageClass = 'page-home';
+2 -2
View File
@@ -1,5 +1,5 @@
module.exports = function (app) { export default function (app) {
app.controller('ContactsController', function ($scope, config) { app.controller('ContactsController', ($scope, config) => {
$scope.address = config.address; $scope.address = config.address;
$scope.telephone = config.telephone; $scope.telephone = config.telephone;
$scope.email = config.email; $scope.email = config.email;