ContactsController ES6 refactoring
This commit is contained in:
1 parent
33b4d0be22
commit
a29faf2ef1
2 files changed
+5
-4
No files matched your search
@@ -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;
|
||||
});
|
||||
};
|
||||
};
|
||||
Reference in new issue
Block a user