Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

*ngIf not working with ais-instantsearch  #999

Description

@NeerajThapliyal

*ngIf not working with

example
<ais-instantsearch *ngIf="router.url != '/checkout'" [config]="instantsearchConfig"></

this.instantsearchConfig = {
indexName: environment.ALGOLIA_SEARCH_INDEX_NAME,
searchClient: createSSRSearchClient({
makeStateKey,
HttpHeaders,
appId: environment.ALGOLIA_APP_ID,
apiKey: environment.ALGOLIA_API_KEY,
transferState: this.transferState,
httpClient: this.httpClient,
}),
routing: {
router: ssrRouter(() => {
if (this.request) {
// request is only defined on the server side
return this.request.url;
}
return window.location.pathname + window.location.search;
}),
stateMapping: simple(),
},
searchFunction(helper) {
if(helper.state.query && helper.state.query.length > 3) {
helper.search();
}
}
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions