Skip to content

An Angular service to fetch French cities, counties an districts data from official API.

Notifications You must be signed in to change notification settings

fbaldo31/ngx-french-locations

Repository files navigation

NgxFrenchLocation

An Angular service to fetch French cities, counties an districts data from official API.

Install

yarn add ngx-french-location

Use

Look at the example folder for a full component displaying counties & cities inside select.


This library was generated with Angular CLI version 8.0.3.

Code scaffolding

Run ng generate component component-name --project ngx-french-location to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project ngx-french-location.

Note: Don't forget to add --project ngx-french-location or else it will be added to the default project in your angular.json file.

Build

Run ng build ngx-french-location to build the project. The build artifacts will be stored in the dist/ directory.

Publishing

After building your library with ng build ngx-french-location, go to the dist folder cd dist/ngx-french-location and run npm publish.

Running unit tests

Run ng test ngx-french-location to execute the unit tests via Karma.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

About

An Angular service to fetch French cities, counties an districts data from official API.

Resources

Stars

Watchers

Forks

Packages

No packages published