Package Exports
- ngx-iban
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ngx-iban) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ngx-iban
Installation
You can install ngx-iban via:
npm install iban ngx-iban --saveor
yarn add iban ngx-ibanUsage
import { NgModule } from "@angular/core";
import { NgxIbanModule } from "ngx-iban";
@NgModule({
imports: [NgxIbanModule]
})
export class AppModule {}Template-driven forms
<form>
<input type="text" [(ngModel)]="iban" ngxIban />
</form>Reactive forms
import { Component } from "@angular/core";
import { FormControl } from "@angular/forms";
import { ibanValidator } from "ngx-iban";
@Component({
selector: "my-component",
styleUrls: ["./my.component.scss"],
templateUrl: "./my.component.html"
})
export class MyComponent {
iban = new FormControl("", ibanValidator());
}<form>
<input type="text" [formControl]="iban" />
</form>