angular-resource

ALWAYS use when working with Angular Resource, Angular 19 resource API, or new async data loading with signals.

oguzhan18/angular-ecosystem-skills176 installsMITSynced Aug 26

Works with

Claude CodeCursorCodex CLIGitHub CopilotGemini CLI

Agent Skills format with YAML frontmatter. Claude Code reads it as-is.

---
name: "angular-resource"
description: "ALWAYS use when working with Angular Resource, Angular 19 resource API, or new async data loading with signals."
license: "MIT"
---

# Angular Resource

**Version:** Angular 19+ (2025)
**Tags:** Resource, Async, Signals

**References:** [Resource API](https://angular.dev/guide/signals/resource)

## Best Practices

- Use resource for async data

```ts
import { resource } from '@angular/core/rxjs-interop';

@Component({})
export class MyComponent {
  private http = inject(HttpClient);
  
  users = resource({
    loader: () => this.http.get<User[]>('/api/users').toPromise()
  });
}
```

- Use with request

```ts
id = signal<string>('');

user = resource({
  request: () => ({ id: this.id() }),
  loader: ({ request }) => this.http.getUser(request.id).toPromise()
});
```

More Frontend Frameworks skills

← All Frontend Frameworks skills

Check your AI visibility

One URL in, a 0–100 score and the exact fixes out.

RUN THE CHECK

Browse all the tools

15 tools across six categories
13 of them never send your data anywhere

Free · No signup · No trial clock

SEE THE DIRECTORY