code
$scope.$watch('data.securityTypeId', function (newVal) { if(newVal){ if(Number(newVal)===2){ $scope.wizardSections = ['general', 'pledge', 'account']; } else { $scope.wizardSections = ['general', 'account']; } } }); $scope.wizardSections = ['general', 'account'];