An Angular service to fetch French cities, counties an districts data from official API.
yarn add ngx-french-location
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.
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 yourangular.json
file.
Run ng build ngx-french-location
to build the project. The build artifacts will be stored in the dist/
directory.
After building your library with ng build ngx-french-location
, go to the dist folder cd dist/ngx-french-location
and run npm publish
.
Run ng test ngx-french-location
to execute the unit tests via Karma.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.