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

+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;
});
};
};