troch / angular-multi-step-form

An angular module for creating multi step forms / wizards
http://troch.github.io/angular-multi-step-form
ISC License
144 stars 44 forks source link

Using ControllerAs for child scope controllers #42

Closed rdzidziguri closed 8 years ago

rdzidziguri commented 8 years ago

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 />

troch commented 8 years ago

As specified in the docs: https://github.com/troch/angular-multi-step-form/blob/master/docs/configuring-steps.md