The page consists of two blocks: a list of all elements and the creation of a new element. Creating a new made using jquery.steps. It worked well. Further added angular and ng-switch directive. Angular earned, stopped working steps. The strangeness is that if you make the form the default choice (in the selection = 'new' script), then the steps starts to work, and if human, first the list, and by pressing the new button - it breaks.
<input type="hidden" ng-model="selection" /> <div ng-switch on="selection"> <div class="new" ng-switch-when="new"> <form id="formwizard"> <!--тут форма--> </form> </div> <div class="all" ng-switch-when="all"> <!--тут список--> </div> </div> <script> $(function () { var form = $('#formwizard').show(); form.steps({ headerTag: 'h3', bodyTag: 'fieldset', transitionEffect: 'slideLeft' }); }); var testApp = angular.module('testApp'); testApp.controller('testController', function ($scope) { $scope.items = ['all', 'new']; $scope.selected = $scope.items[0]; $scope.createNew = function () { $scope.selected = $scope.items[1]; } $scope.showAll = function () { $scope.selected = $scope.items[0]; } }); </script>