momentum-api

Integrate Momentum API into Angular components for typed CRUD operations.

7|1|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/DonaldMurillo/momentum-cms --skill momentum-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: momentum-api
Source: https://github.com/DonaldMurillo/momentum-cms/tree/main/.claude/skills/momentum-api
Command: npx skills add https://github.com/DonaldMurillo/momentum-cms --skill momentum-api

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps Angular developers integrate Momentum API for data operations against their components with minimal boilerplate, enabling smooth data flows and consistent access patterns.

Core Features & Use Cases

  • InjectMomentumAPI: Access the Momentum API instance in components via injectMomentumAPI().
  • CRUD & Queries: Use collection<T>('name') to perform find, findById, create, update, and delete operations with typed results.
  • Type Safety: Leverage generated types for collections to ensure compile-time correctness.

Quick Start

Instantiate the API in your Angular component using injectMomentumAPI() and call methods like collection('posts').find({ limit: 10 }) to fetch data.

Frequently Asked Questions about momentum-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate Momentum API into an Angular component for data operations?

You can perform CRUD operations in Angular by calling injectMomentumAPI() to get the API instance, then using collection<T>('name') to execute find, findById, create, update, and delete methods with TypeScript generics for compile-time type safety.

Does Momentum API integration support Angular SSR environments?

Yes, Momentum API integration applies across both Angular SSR and browser environments. It optionally supports TransferState behavior to manage data fetching and state transfer smoothly between server-side rendering and the client.

How do I ensure type safety when querying collections with Momentum API?

Type safety is ensured by leveraging generated types for your collections alongside TypeScript generics. When calling collection<T>('name'), the generic parameter T applies the generated types to provide compile-time correctness for your query results.

What is the best way to fetch data from a Momentum CMS collection in Angular?

The best way to fetch data is by instantiating the API in your Angular component using injectMomentumAPI(), then calling methods like collection('posts').find({ limit: 10 }) to retrieve your typed collection data with minimal boilerplate.

Do I need specific dependencies to use injectMomentumAPI in my Angular project?

You need to import injectMomentumAPI from the @momentum-cms/admin package. The integration requires no additional external dependencies, relying on this package and TypeScript generics to handle data operations.