ngx-data-polling

December 6, 2025 ยท View on GitHub

Angular 20 library with utilities to handle data polling in a declarative and type-safe way.

๐Ÿ“š Documentation

For complete documentation, usage examples, and API reference, see:

projects/ngx-data-polling/README.md

๐Ÿš€ Quick Start

npm install ngx-data-polling
import { pollingResource } from 'ngx-data-polling';

readonly resource = pollingResource({
  loader: () => this.myService.getData(),
  intervalMs: 5000,
  initialValue: []
});

๐Ÿ› ๏ธ Development

# Install dependencies
npm install

# Build the library
npm run build

# Run tests
npm test

# Lint
npm run lint

๐Ÿ“ฆ Project Structure

ngx-data-polling/
โ”œโ”€โ”€ projects/
โ”‚   โ””โ”€โ”€ ngx-data-polling/     # Library source code
โ”‚       โ”œโ”€โ”€ src/
โ”‚       โ”‚   โ”œโ”€โ”€ lib/
โ”‚       โ”‚   โ”‚   โ”œโ”€โ”€ utils/
โ”‚       โ”‚   โ”‚   โ”œโ”€โ”€ components/
โ”‚       โ”‚   โ”‚   โ””โ”€โ”€ directives/
โ”‚       โ”‚   โ””โ”€โ”€ public-api.ts
โ”‚       โ””โ”€โ”€ README.md          # Full library documentation
โ”œโ”€โ”€ package.json
โ””โ”€โ”€ README.md                  # This file (development guide)