2.2.6 • Published 1 year ago

ngx-country-dropdown v2.2.6

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

NgxCountryDropdown

An Angular Material package for selecting country from list.

Supports:

  • Angular
  • Angular Material
  • ReactiveFormsModule

Images

alt text alt text alt text

Installation

Install This Library

$ npm install ngx-country-dropdown --save

Usage

Import

import { NgxCountryDropdownModule } from "ngx-country-dropdown";

Add NgxCountryDropdownModule to your module file:

imports: [
    NgxCountryDropdownModule,
  ]

Example

Refer to test app in this repository for working example.

<form action="" [formGroup]="testForm" (submit)="onSubmit()">
    <ngx-country-dropdown defaultValue="India" formControlName="country"></ngx-country-dropdown>
    <input class="btn" type="submit" value="Show">
</form>

<p> {{ selectedCountry}} </p>

Options

OptionsTypeDefaultDescription
defaultValuestring""Default country value.

Library Contributions

  • Fork repo.
  • Go to ./projects/ngx-country-dropdown
  • Update ./src/lib with new functionality.
  • Update README.md
  • Pull request.

keywords

angular npm countrylist dropdown input

2.2.6

1 year ago

2.2.5

1 year ago

2.2.4

1 year ago

2.2.3

1 year ago

2.2.2

1 year ago

2.2.1

1 year ago

0.0.1

1 year ago