Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Angular
  3. ngx-memoize

ngx-memoize

MITTypeScript

A zero-dependency TypeScript decorator that memoizes Angular class methods to eliminate repeated template-call overhead and boost performance.

GitHubGitHub
1 stars0 forks0 contributors

Overview

NGX Memoize is a lightweight TypeScript decorator specifically designed for Angular applications. It optimizes performance by caching method results, preventing unnecessary re-executions during Angular's Change Detection cycles when methods are called from templates.

Key Features

  • Performance Optimization — Caches method results and only re-executes when arguments change, drastically reducing computation.
  • Automatic Memory Management — Cleans up cached data when the component is destroyed via ngOnDestroy, preventing memory leaks.
  • Comparison Strategies — Supports both fast referential checks (ref) and deep JSON-based comparison (json) for mutable objects.
  • Manual Cache Control — Provides utilities to manually clear cache for specific methods or entire instances, with optional auto-destroy disabling.
  • Zero Dependencies — Lightweight with no external dependencies.

Philosophy

NGX Memoize prioritizes simplicity and developer experience by offering automatic, lifecycle-aware caching that "just works" out of the box, while still providing flexibility for advanced use cases.

Quick Stats

Stars1
Forks0
Contributors0
Open Issues0
Last commit8 months ago
CreatedSince 2025

Tags

#caching#memory-management#change-detection#performance-optimization#memoization#angular

Built With

A
Angular
T
TypeScript

Included in

Angular10.0k
Auto-fetched 10 hours ago

Related Projects

ng-letng-let

Angular structural directive for sharing data as local variable into html component template.

Stars47
Forks0
Last commit1 month ago
ngx-copypastengx-copypaste

A pure and awesome copy paste directive for Angular

Stars30
Forks3
Last commit7 months ago
ng-for-track-by-propertyng-for-track-by-property

Angular global trackBy property directive with strict type checking.

Stars28
Forks1
Last commit1 month ago
ng-click-outsideng-click-outside

Angular directive for handling click events outside of an element.

Stars15
Forks3
Last commit5 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub