Skip to content

Instantly share code, notes, and snippets.

View psivakrishnareddy's full-sized avatar

P SIVA KRISHNA REDDY psivakrishnareddy

View GitHub Profile
@psivakrishnareddy
psivakrishnareddy / reactive-search-angular.js
Last active February 12, 2021 13:45
Code for a Reactive Search Component in angular.
## Reactive Search Component Angular
https://psivakrishnareddy.medium.com/reactive-search-component-using-rxjs-angular-app-explained-d9a10daab8e0
import { Component, ElementRef, EventEmitter, OnInit, Output } from '@angular/core';
import { Observable, fromEvent } from 'rxjs';
import { debounceTime, distinctUntilChanged, filter, map } from 'rxjs/operators';
import { SearchResults } from 'src/app/shared/models/search-result.model';
import { anyService } from 'any.service';
@Component({
@psivakrishnareddy
psivakrishnareddy / ContextApi-QuickStart.md
Last active March 6, 2022 08:00
Quick Start Guide to Create a Context API store Setup in React

React Context API QuickStart Guide

This is a Template for Context Api in react created by Siva Krishna Reddy.

ESSENTIALS

The Context api elements include Actions, Reducers, Store, Types

Store

Create a Store in a file and Export it.