Skip to content

HttpResourcePlugin

The HTTP Resource plugin generates Angular services using the experimental httpResource API for automatic caching, state management, and reactive data loading.

Experimental Feature

httpResource is still experimental in Angular. Use with caution in production environments.

Learn more in Angular Docs ↗️

Usage

typescript
// openapi.config.ts
import { GeneratorConfig } from 'ng-openapi';

export default {
  options: {
    plugins: [HttpResourcePlugin],
  },
  ... // other configurations
} as GeneratorConfig;

Notes

Released under the MIT License.
This site is powered by Netlify