Lightning-fast Search For Angular Apps

Author: algolia
Publish Date:
Official Page: Go to website
Views Total: 121
License: MIT

Description:

Angular InstantSearch is an Angular 4 and 5 TypeScript library that lets you create an instant search results experience using Algolia‘s REST API.

Installation:

# Yarn
$ yarn add angular-instantsearch

# NPM
$ npm install angular-instantsearch --save

Usage:

import { NgAisModule } from 'angular-instantsearch';

@NgModule({
  declarations: [AppComponent, ...],
  imports: [NgAisModule.forRoot(), ...], // use .forRoot()
  bootstrap: [AppComponent]
})
export class AppModule {}
<h1>My first search app</h1>
<ng-ais-instantsearch
  [config]="{
    apiKey: '6be0576ff61c053d5f9a3225e2a90f76',
    appId: 'latency',
    indexName: 'instant_search'
  }"
>
  <!-- Search Widgets will go there -->
</ng-ais-instantsearch>

<ng-ais-instantsearch
  [config]="{
    apiKey: '6be0576ff61c053d5f9a3225e2a90f76',
    appId: 'latency',
    indexName: 'instant_search',
    urlSync: true
  }"
>
  <ng-ais-results></ng-ais-results>
</ng-ais-instantsearch>

Preview:

angular-instantsearch

Leave a Reply