I am trying to use the controllerAs property on a $routeProvider route without any success.
controllerAs
$routeProvider
Here is the sample code:
var app =
If you work with $scope, you will have to return $scope at the end of the function for the controllerAs syntax to function.
$scope
return $scope
app.controller('Ctrl', function($scope) { $scope.one = 'actual'; // return $scope return $scope; });
Good Luck.