How to perform a check on ng-disabled in angularjs?
I am using a fuelUX Wizard and Angularjs. I would like the next button to be enabled or disabled basing on this controller method: $scope.canMoveForward = function(){ switch($("#moduleWizard").wizard("selectedItem").step){ case 1: //check if the module on the first step is valid*/ return $scope.validSelection && $scope.linkedPredicateForm.$valid; case 2: //check if the table is empty return !linkingDataSource.isEmpty(); case 3: var enab= ($scope.saveModeForm.$valid && $scope.newSourceForm.$valid) || ($scope.saveModeForm.$valid && $scope.appendSourceForm.$valid) } }; So indeed this is how I