You have unlimited access as a PRO member
You are receiving a free preview of 3 lessons
Your free preview as expired - please upgrade to PRO
Contents
Recent Posts
- Object Oriented Programming With TypeScript
- Angular Elements Advanced Techniques
- TypeScript - the Basics
- The Real State of JavaScript 2018
- Cloud Scheduler for Firebase Functions
- Testing Firestore Security Rules With the Emulator
- How to Use Git and Github
- Infinite Virtual Scroll With the Angular CDK
- Build a Group Chat With Firestore
- Async Await Pro Tips
Custom Algolia Hits Widget to Integrate With Angular Directives
written by Jeff DelaneyI recently posted a couple lessons about building a full text search feature with Algolia and InstantSearchJS. However, the main drawback is that you don’t have access to Angular’s core directives when using the widgets out of the box. Thankfully, there is a solution with InstantSearch Connectors. In this snippet, we build a custom hits widget that will save the results in a RxJS BehaviorSubject. From there, we can simply unwrap the results in the HTML template with the async
pipe.