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
+5 -4

No files matched your search

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