ngx-ipv4-helper
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

ngx-ipv4-helper

An angular directive to help input ipv4 address

Demo application

Installation

To install this library, run:

$ npm install ngx-ipv4-helper --save

and then import module:

import { BrowserModule } from "@angular/platform-browser";
import { NgModule } from "@angular/core";

import { AppComponent } from "./app.component";

import { NgxIpv4HelperModule } from "ngx-ipv4-helper"; // <===

@NgModule({
  declarations: [AppComponent],
  imports: [
    BrowserModule,
    NgxIpv4HelperModule, // <===
  ],
  providers: [],
  bootstrap: [AppComponent],
})
export class AppModule {}

Usage

ngxIpv4Helper should place on input with ngControl

Template form

<input ngModel ngxIpv4Helper />

Reactive form

<input [formControl]="ip" ngxIpv4Helper />
ip = new FormControl("");

Readme

Keywords

none

Package Sidebar

Install

npm i ngx-ipv4-helper

Weekly Downloads

2

Version

1.0.0

License

none

Unpacked Size

149 kB

Total Files

26

Last publish

Collaborators

  • bree7e