The following works: ``` $stateProvider .state('dashboard', { url: '/dashboard', onEnter: (productivityData) => {} }) ``` but this doesn't ``` $stateProvider .state('dashboard', { url: '/dashboard', onEnter(productivityData) {} }) ```
The following works:
but this doesn't