Angular 2 and 4 support drop
In order to support Angular CLI 6 we had to drop the support for older versions, the only supported versions are now: v5 and v6. You can update your Angular 4 application pretty easily by following this guide: https://update.angular.io/.
If you are using Angular v6 you will need an extra step, polyfill process.env by adding in your src/polyfill.ts:
(window as any).process = {env: {}};
Widget prefix
The ng- prefix is considered reserverd for core implementations into Angular so we dropped it.
All the widgets are now only starting with ais-:
<ais-instantsearch [config]="{...}"> <ais-hits> <ng-template let-hits="hits"> <div *ngFor="let hit of hits"> Hit {{hit.objectID}}: <ais-highlight attribute="name" [hit]="hit"> </ais-highlight> </div> </ng-template> </ais-hits> </ais-instantsearch>
Server side rendering
- The
createSSRAlgoliaClientutil has been renamed tocreateSSRSearchClient - You cannot use the new
routing: trueoption on<ais-instantsearch>widget until resolution of preboot#82