ngx-bootstrap icon indicating copy to clipboard operation
ngx-bootstrap copied to clipboard

Angular 7 upgrade - dataSource is undefined

Open johnbenjaminphe opened this issue 7 years ago • 1 comments

Hello,

Could you please assist with the below issue?

Upgraded to Angular 7 and the typeahead stopped working.

this.dataSource is undefined.

this.dataSource = Observable.create((observer: any) => { this.service.getAreaBySearchText(this.placeNameText) .subscribe((result: any) => { this.searchResults = <AreaTextSearchResult[]>result; let newResult = _.map(this.searchResults, function (result) { return new AutoCompleteResult(result.PolygonAreaCode, result.PlaceName, result.PolygonAreaName); }); observer.next(newResult); }); });

johnbenjaminphe avatar Mar 12 '19 12:03 johnbenjaminphe

Resolved the issue by upgrading the ngx-bootstrap version to 3.2.0

johnbenjaminphe avatar Mar 13 '19 10:03 johnbenjaminphe