Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-iban

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-iban

Angular directives and pipes for IBAN

  • 0.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8.4K
decreased by-2.05%
Maintainers
1
Weekly downloads
 
Created
Source

Angular-iban

Directives and pipes for Angular

Installation

npm:

npm install --save angular-iban iban

yarn:

yarn add angular-iban iban

Import

Once installed you need to import the main module:

import { AngularIbanModule } from 'angular-iban';

@NgModule({
  declarations: [],
  imports: [AngularIbanModule], 
})
export class Module {
}

Usage

IBAN Validator

<form name="form" novalidate>
  <div class="form-group row">
    <label for="iban" class="col-sm-2 col-form-label">Input your IBAN:</label>
    <div class="col-sm-4">
      <input id="iban" name="iban" class="form-control" #iban="ngModel" type="text" ibanValidator [(ngModel)]="testIban" [ngModelOptions]="{standalone: true}" placeholder="IBAN" required autocomplete="off">
    </div>
    <div *ngIf="iban.invalid && (iban.dirty || iban.touched)"
         class="alert alert-danger">

      <div *ngIf="iban.errors.required">
        IBAN is required.
      </div>
      <div *ngIf="iban.errors.iban">
        IBAN is invalid
      </div>

    </div>
    <div *ngIf="iban.valid && (iban.dirty || iban.touched)"
         class="alert alert-danger">
        IBAN is valid.
    </div>
  </div>
</form>

IBAN Formatter

<p>{{testIban | ibanFormatter}}</p>

Demo

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

License

Copyright (c) 2018 fundsaccess AG. Licensed under the MIT License (MIT)

Keywords

FAQs

Package last updated on 21 Dec 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc