You cannot add controllerAs syntax to the controller $routeProvider.when .
You must use the controllerAs option that was provided to use the controller alias in string format, and controller also accepts a string that will be considered by the angular controller.
code
$routeProvider.when(APP_BASE_URL + 'kicks', { reloadOnSearch: false, navitem: true, name: 'Kicks', templateUrl: 'kick/partials/kick.html', controller: 'KickController' controllerAs: 'kick' //controller alias taken out from controller option });
OR
controller: 'KickController as kick'
Doc link
source share