Prefers arrow function over unnamed function

This commit is contained in:
Jared Tabor 2018-07-03 13:08:57 -07:00
parent 4c1bc49258
commit 580736e80d
No known key found for this signature in database
GPG Key ID: CC50E67C506270C9

View File

@ -59,7 +59,7 @@ export default {
views: {
'@': {
templateUrl: indexTemplate,
controller: ['JobsStrings', function (strings) {
controller: ['JobsStrings', (strings) => {
const vm = this || {};
vm.strings = strings;
}],