
Angular Elements
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-codeInstalls 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- Angular Cli187
- Angular Http185
- Angular Guards184
- Angular Interceptors184
- Angular Schematics184
- Angular Components182
- Angular Destroyref182
- Angular Forms182
- Angular Pipes180
- Angular Resolvers179
- Angular Deferrable178
- Angular Resource178
- Angular Signals178
- Angular Signals Forms178
- Angular Reactive177
- Angular Directives176
- Angular Lifecycle176
- Angular Di175
- Angular Viewchild174
- Angular Cypress172
- Angular Router172
- Angular Control Flow170
- Angular Zoneless170
- Nx170