Is it possible to have a controller which does not take $scope but use ControllerAs feature so that istead of using
function someController($scope, multiStepFormScope) { $scope.somedata = 'value'; }
i could use
function someController(multiStepFormScope) { var vm = this; vm.somedata = 'value'; }
and inside step HTML i could refer to it in the following way.
Is it possible to have a controller which does not take $scope but use ControllerAs feature so that istead of using
function someController($scope, multiStepFormScope) { $scope.somedata = 'value'; }
i could use
function someController(multiStepFormScope) { var vm = this; vm.somedata = 'value'; }
and inside step HTML i could refer to it in the following way.
<input type="number" style="display: none" ng-model="vm.contactList.length" min="1" required />