Comments (4)
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.
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.
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.
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)
- Avoid timeout and others HOT 5
- Question: Can I invoke setValue on search-select component from Observable completion handler? HOT 4
- Not working - Upgraded to Angular 6.0 & RxJS 6.x HOT 5
- Make compatible with @angular/material version 6 HOT 2
- Regarding Search select with real (remote) API data HOT 4
- 'formControl' isnt't a known property of 'search-select' HOT 2
- Upgrade to Angular 7 HOT 1
- Add Angular 9 support HOT 3
- Make it easier to see and manipulate the value and demos
- "BrowserModule has already been loaded" error when importing ObsAutocompleteModule HOT 2
- this.myService is undefined when using Search Select dataSource HOT 5
- Peer dependency problem
- Make it possible to use the search-select within a mat-form-field element HOT 2
- Select drop-down list not fully visible HOT 1
- Trigger displayValue without using FormControl HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-material-search-select.