ngx-bootstrap
ngx-bootstrap copied to clipboard
Angular 7 upgrade - dataSource is undefined
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); }); });
Resolved the issue by upgrading the ngx-bootstrap version to 3.2.0