Examples

Explore these examples to see how Mini-State simplifies state management in Angular applications.

Simple State

Basic usage of MiniState for data fetching with automatic loading state and error handling

View Example
Detail View

Using MiniState with observable router parameters and form integration for detail pages

View Example
CRUD Operations

Full CRUD operations with MiniCrudState for efficient collection management

View Example
Combined State

Build your own Custom functionality by combining multiple MiniState instances

View Example
Search

Use MiniState for search functionality with loading and error handling

View Example

Why Mini-State?

Mini-State provides a streamlined approach to handling async operations and state management.

Reduced Boilerplate

Eliminate repetitive code for handling loading states, errors, and success messages

Signals

Leverages Angular's signals for efficient, fine-grained reactivity

Lightweight

Minimal footprint with no external dependencies

Flexible API

Multiple ways to create and combine state objects for different use cases

TypeScript First

Built with TypeScript for excellent type safety and developer experience

Composable

Combine multiple state objects for combined scenarios with minimal effort

Quick Start

Get started with Mini-State in your Angular application:

Then create your first state object:

Mini-State Demo Application

Built with Angular