Giter Site home page Giter Site logo

Comments (4)

kylecordes avatar kylecordes commented on June 27, 2024 1

Hello. It's hard to tell exactly what is wrong with just a few snippets of code. But my guess from this message is that it has little to do with angular-material-search-select directly, but rather that you are not bringing in the FormModule and ReactiveFormModule to your component. Those are the things needed which define the [formControl] binding. The search select component participates in the Angular form binding mechanism but does not itself directly define this binding.

from angular-material-search-select.

kylecordes avatar kylecordes commented on June 27, 2024 1

example module import here:

https://github.com/OasisDigital/angular-material-search-select/blob/master/src/app/app.module.ts#L64

from angular-material-search-select.

melroy89 avatar melroy89 commented on June 27, 2024

Ow you are probably right, I thought these modules where imported by your module internally already. Yea a small usage/getting started could help.

from angular-material-search-select.

kylecordes avatar kylecordes commented on June 27, 2024

They are probably imported inside the module and used there, but since you are using [formControl] from "outside" as you would with any other form control, I think it makes the most sense to import it in the usual way.

I have an idea though, to make a standalone example on StackBlitz, to make it easier to get started.

(It's also possible it might become moot, it sounds like the Angular Material team is eventually going to add some kind of search-select-like capability, eventually. If they do I will aim to upgrade this code to use it, if this code is still necessary.)

from angular-material-search-select.

Related Issues (16)

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.