Socket
Socket
Sign inDemoInstall

angular-ng-stepper

Package Overview
Dependencies
5
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-ng-stepper

Angular stepper


Version published
Maintainers
1
Weekly downloads
2,246
increased by2.84%
Install size
98.9 kB

Weekly downloads

Readme

Source

Angular Stepper

  • See Demo or try in Stackblitz

Table of contents

Description

The ng-stepper is a simple wizard/stepper component for Angular which is built on top of Angular CDK Stepper.

Getting started

Step 1: Install @angular/cdk:

Step 2: Install angular-ng-stepper:

NPM
npm i @angular/cdk
npm i angular-ng-stepper

Step 3: Import the CdkStepperModule:

Step 4: Import the NgStepperModule:

import {CdkStepperModule} from '@angular/cdk/stepper';
import {NgStepperModule} from 'ng-stepper';

@NgModule({
  declarations: [AppComponent],
  imports: [CdkStepperModule,NgStepperModule],
  bootstrap: [AppComponent]
})
export class AppModule {}

Usage sample

 <ng-stepper #cdkStepper [linear]="true">
 
    <cdk-step [stepControl]="stepOne.stepOneForm" [optional]="false">
      <ng-template cdkStepLabel>
        <div class="step-bullet">1</div>
        <div class="step-title">Personal Details <span class="required">*</span></div>
      </ng-template>
      <app-step-one #stepOne></app-step-one>
    </cdk-step>
    
    <cdk-step [stepControl]="stepTwo.stepTwoForm" [optional]="true">
      <ng-template cdkStepLabel>
        <div class="step-bullet">2</div>
        <div class="step-title">Address</div>
      </ng-template>
      <app-step-two #stepTwo></app-step-two>
    </cdk-step>
    
 </ng-stepper>

API

Angular-ng-stepper uses Angular CDK API. For the full documentation you can refer to here

Support Angular ng-stepper!

If you do love angular-ng-stepper I would appreciate a donation :)

Author

License

MIT

Keywords

FAQs

Last updated on 11 Jul 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc