This one kicks in when you're building Angular components that need to live outside Angular apps, like embedding widgets in React or vanilla JS sites. It covers the createCustomElement API, input/output mapping to web component attributes, and the newer standalone elements approach for Angular 21. The examples show you the full registration flow, from creating the custom element to defining it in the browser's custom elements registry. Honestly, the micro-frontend use case is the sweet spot here. If you're just building a normal Angular app, you won't need this. But if you're packaging Angular components for distribution or building component libraries that need framework independence, it's essential.

skills.sh installs
188
GitHub stars
7
last updated
Aug 21, 2026

Install

$ npx -y skills add oguzhan18/angular-ecosystem-skills --skill angular-elements --agent claude-code

Installs into .claude/skills of the current project.

Files

@angular/elements

Version: Angular 21 (2025) Tags: Web Components, Custom Elements, Micro-frontends

References: Elements Guide • API

API Changes

This section documents recent version-specific API changes.

  • NEW: createCustomElement API — Package Angular components as custom elements

  • NEW: NgElementConfig — Configure custom element behavior

  • NEW: Input/Output mapping — Map Angular inputs/outputs to web component attributes

  • NEW: Standalone elements — Build standalone elements without NgModule

Best Practices

  • Install @angular/elements
npm install @angular/elements
  • Create custom element from component
import { createCustomElement } from '@angular/elements';

@Injectable()
export class ElementRegistrar {
  constructor(private injector: Injector) {}

  register() {
    const element = createCustomElement(MyComponent, { injector: this.injector });
    customElements.define('my-element', element);
  }
}
  • Use in main.ts
import { createApplication } from '@angular/platform-browser';
import { createCustomElement } from '@angular/elements';

Sponsors

Details

Repository
github.com/oguzhan18/angular-ecosystem-skills
Category
Frontend Development
First seen
Jun 3, 2026

More from oguzhan18/angular-ecosystem-skills

All 45
1akillness avatarresponsive-designakillness/oh-my-skillsresponsive design187skills.sh installs
2qodex-ai avatarcomponent-interface-designqodex-ai/ai-agent-skillsDesign interfaces using component libraries and design systems. Creates cohesive UIs with pre-built accessible component primitives.182skills.sh installs
3teachingai avatarant-design-vueteachingai/full-stack-skillsant design vue182skills.sh installs
4nexu-io avatarhtml-ppt-product-launchnexu-io/open-designLaunch keynote deck — dark hero + light content, warm orange→peach accent, feature cards, pricing tiers, CTA. Use when announcing a product, launching a feature181skills.sh installs
5sickn33 avatarsenior-frontendsickn33/antigravity-awesome-skillssenior frontend178skills.sh installs
6esramulkpinar avatarfrontend-primeesramulkpinar/prime-frontend-skillsfrontend prime173skills.sh installs