Closed CCole closed 7 years ago
Consider this approach for multi step form utilize ui router and its nested states and different views per state https://scotch.io/tutorials/angularjs-multi-step-form-using-ui-router
cbp styleguide on wizards: https://us-cbp.github.io/cbp-style-guide/docs/patterns/wizards.html
angular routing - http://www.w3schools.com/angular/angular_routing.asp
ngAnimate The ngAnimate module adds and removes classes.
The ngAnimate module does not animate your HTML elements, but when ngAnimate notice certain events, like hide or show of an HTML element, the element gets some pre-defined classes which can be used to make animations.
directives adds a ng-enter class value when they enter the DOM, and a ng-leave attribute when they are removed from the DOM.
ngAnimate Gotchas make sure you keep your version of angular and angular-animate in sync. a note on installing an older version of a package
css keyframe animation syntax keyframes rule
html inside a view injected with ng-view does not properly render mdl-textfield--floating-label http://stackoverflow.com/questions/31638890/mdl-textfield-not-taking-ngmodel-changes-into-account/40781433#40781433
integrating angular and material design lite http://stackoverflow.com/questions/31278781/material-design-lite-integration-with-angularjs
Material Design Lite will automatically register and render all elements marked with MDL classes upon page load. However in the case where you are creating DOM elements dynamically you need to register new elements using the upgradeElement function.
things to consider
Animations work however: the responsive sizing of the material design lite card allows for both views to be visible in the card at the same time, which expands the height of the card.
new views need to be positioned absolute when entering and leaving. Also card needs to be set at a minimum height.
Align inputs in a single column
Forms should never consist of more than one column. One of the problems with form fields in multiple columns is that your users are likely to interpret the fields inconsistently. If a form has horizontally adjacent fields, the user must scan in Z patterns, slowing the speed of comprehension and muddying the clear path to completion. But if a form is in a single column, the path to completion is a straight line down the page.
-Designing More Efficient Forms One Column vs. Multiple Columns
The form shall be multistep and...