Giter Site home page Giter Site logo

bartekmis / angular-multi-step-form Goto Github PK

View Code? Open in Web Editor NEW

This project forked from troch/angular-multi-step-form

1.0 2.0 0.0 229 KB

An angular module for creating multi step forms / wizards

Home Page: http://blog.reactandbethankful.com/angular-multi-step-form

License: ISC License

JavaScript 100.00%

angular-multi-step-form's Introduction

Build Status Coverage Status

Angular Multi step form (1.2.0)

multiStepForm is an angular module to create multi step forms and wizards. Create your steps like your would create your views with ngRoute or ui-router!

It is lightweight (6kb minified) but extremely versatile and powerful.

Requirements

  • Angular 1.3+

Features

  • Steps are controlled views and are easily configured
  • Asynchronous loading of steps (templateUrl and resolve)
  • Forward and backward animations
  • Isolated or non isolated scopes for steps
  • Track step validity if it contains a form
  • onCancel, onFinish and onStepChange callbacks
  • Browser navigation with search URL parameter
  • You decide what level of control you expose to the user: next, previous, jump to state, finish, cancel, etc...
  • Place summary, controls, etc... in header or footer
  • Support for multiple components per view

Breaking changes with 1.1.x

See changelog and migration guide:

Examples

Docs

Getting started

Grab the sources with bower or download from Github: https://github.com/troch/angular-multi-step-form/tree/master/dist:

$ bower install --save-dev angular-multi-step-form

Include the multiStepForm module in your app:

angular.module('yourApp', [
    'multiStepForm'
]);

You can then configure your steps

$scope.steps = [
    {
        template: 'Hello <button class="btn btn-default" ng-click="$nextStep()">Next</button>'
    },
    {
        template: 'World <button class="btn btn-default" ng-click="$previousStep()">Previous</button>'
    }
];

And start your multiple step form / wizard:

  • Use the multiStepContainer directive
  • You need to use the stepContainer inside multiStepContainer to tell it where to load steps.
<multi-step-container steps="yourSteps">
    <step-container></step-container>
</multi-step-container>

angular-multi-step-form's People

Contributors

tinusn avatar troch avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.