
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
angularfire-redux
Advanced tools
This is an experimental library for making AngularFire more NgRx-like. It's not a replacement for AngularFire, it's an additive piece. AngularFire already works in a redux-ish fashion. This library changes the API surface so it more closely matches NgRx. However, since the Firebase SDK handles the synchronization of data and remote updates reducers and custom actions are not needed to manage data.
yarn add angularfire-redux
import { Component, OnInit } from '@angular/core';
import { Observable } from 'rxjs';
import { Store } from 'angularfire-redux';
import { FieldValue } from '@firebase/firestore-types';
import {
AngularFirestore,
AngularFirestoreCollection
} from 'angularfire2/firestore';
export interface Item {
name: string;
id: string;
type: string;
date: FieldValue;
}
@Component({
selector: 'app-root',
template: `
<ul>
<li *ngFor="let item of items$ | async">
<span>{{ item.name }}</span>
<button (click)="delete(item)">Delete</button>
</li>
</ul>
`
})
export class AppComponent implements OnInit {
items$: Observable<Item[]>;
constructor(private store: Store) { }
ngOnInit() {
this.items$ = this.store.selectCol('items', r => r.orderBy('date'));
}
delete(item: Item) {
this.store
.dispatch({ path: `items/${item.id}`, type: 'delete' });
}
}
FAQs
### Realtime NgRx without the reducers.
The npm package angularfire-redux receives a total of 1 weekly downloads. As such, angularfire-redux popularity was classified as not popular.
We found that angularfire-redux demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.