GithubHelp home page GithubHelp logo

rebolon / ng-address-data-gouv Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 1.78 MB

Composant web de recherche d'adresses au travers d'un système d'autocomplétion et d'utilisation du service officiel geo.api.gouv.fr

Home Page: https://rebolon.github.io/ngx-address-data-gouv/

JavaScript 12.68% TypeScript 58.08% HTML 28.76% SCSS 0.47%

ng-address-data-gouv's Introduction

NgxAddressDataGouv

The aim of this project is to provide a web custom elements with an autocomplete input that consumes the API of https://adresse.data.gouv.fr/api-doc

With this component you can fill an french address that will be validated against official https://adresse.data.gouv.fr/api-doc

You may also import the library to use the component inside your angular project.

usage

There is 3 projects in this repository :

  • ngx-address-data-gouv-search : which contain the main library
  • demo : which is a demo app that uses the lib inside Angular app
  • web-components : which is used to build a web-components ngx-address-data-gouv-search that can be used in any html files

You can build lib by using ng build --project=lib

ng-address-data-gouv's People

Contributors

dependabot[bot] avatar rebolon avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

ng-address-data-gouv's Issues

Restore a sample with loader

Do a sample with the docs/ folder where you could add an icon to display a loader
In previous version there was a loding component, but it was'nt the right place coz ot coupled both components together

Size of the js bundle

Current size in es2015 output is 216Kb, so 65,8Kb in gziped version
Is there any better way to reduce this package size ?

  • all related parts to custom-elements could be externalized ?
  • all related angular core could be externalized (and be loaded only once ?)
  • any other idea ?

Is there a way to build Standalone Library ?

Since angualr 13 we can build standalone component, directive ... And in an App, there is no more need to use NgModule. So why in a library, we still need to declare a module ?

  • Find a reason
  • maybe explore solution like it's done in regular app with bootstrap

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.