I an new to Angular world. I want to use ng2 completer using angular CLI project.
I have followed steps mentioned on link https://www.npmjs.com/package/ng2-completer , except the system.js . Can you please suggest me where to set these things in case of Angular CLI.
I am getting below error:
ERROR Error: Uncaught (in promise): Error: Template parse errors:
Can't bind to 'datasource' since it isn't a known property of 'ng2-completer'.
If 'ng2-completer' is an Angular component and it has 'datasource' input, then verify that it is part of this module.
If 'ng2-completer' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("
Looks like something wrong with the way you imported Ng2CompleterModule.
Better ask this type of questions on stackoverflow and add the AppModule and component code
@jaiparkashyadav would you please explain, how to fix your AppModule?
I got that problem and I already check my AppModule, Evertything seems alright.
thank you.
Hi All,
I an new to Angular world. I want to use ng2 completer using angular CLI project.
I have followed steps mentioned on link https://www.npmjs.com/package/ng2-completer , except the system.js . Can you please suggest me where to set these things in case of Angular CLI.
I am getting below error:
ERROR Error: Uncaught (in promise): Error: Template parse errors: Can't bind to 'datasource' since it isn't a known property of 'ng2-completer'.
Search captain
Can't bind to 'minSearchLength' since it isn't a known property of 'ng2-completer'.
Thanks in advance , Regards, Jai
Hi @jaiparkashyadav,
Looks like something wrong with the way you imported
Ng2CompleterModule
. Better ask this type of questions on stackoverflow and add theAppModule
and component codeThanks for the response, it has been fixed, it was problem in importin gin AppModule.
@jaiparkashyadav would you please explain, how to fix your AppModule? I got that problem and I already check my AppModule, Evertything seems alright. thank you.
In my case i have not imported the Ng2CompleterModule into @NgModule({ imports: [ section