ng2-completer

ng2-smart-table has missing dependencies completer

混江龙づ霸主 提交于 2020-06-15 04:41:04
问题 I am using Ng2SmartTable and I have this error: ERROR in The target entry-point "ng2-smart-table" has missing dependencies: - @ akveo / ng2-completer I have already tried the following commands and it does not work: 1.npm install --save ng2-smart-table 2.npm i ng2-completer --save 3.npm i rxjs-compat --save 回答1: I also faced the same issue while trying to install ng2-smart-table In ng2-smart-table the CompleterService is imported in the following way import { CompleterService } from '@akveo

ng2-completer does not return any search results while searching on an array of objects

偶尔善良 提交于 2020-03-10 05:14:10
问题 I am trying to use ng2-completer for auto-completing in a search box and it does not work except for an array of strings. I get 'No Results found'. From the screenshot it can be seen that "name" has been loaded into the array. I want to use ng2-completer to search on an array of (say) Person. But need to search on name and address and so I cannot just use a string[]. Tried a number of approaches: both with Remote Data and also with Local but both fail when using a class. I have tried a simple

ng2-completer selected event not triggered on mouse click

空扰寡人 提交于 2020-03-03 08:48:10
问题 As the question suggests, I got problem applying the selected event for ng2-completer . The event value is referred here https://www.npmjs.com/package/@ng-select/ng-select. It also seems to be an open issue with ng2-completer because they haven't release any fix for this issue on Github. https://github.com/oferh/ng2-completer/issues/302 However there is no work-around solution yet. Here's the code that I use: HTML template: <ng2-completer [(ngModel)]="searchStr" [datasource]="items"