Angular 22 standalone library and interactive examples based on the MIT-licensed OrgChart v8 behavior. The interaction engine is part of this package, not an orgchart npm dependency. The public Angular API uses signal inputs, live TemplateRef views, outputs, and automatic teardown. This is a new major version, not a drop-in replacement for the Angular 8 NgModule API.
- Angular usage, templates and export setup
- Typed options and public methods
- Original example index, served by the Angular application
Use Node 24.15+ (24.x) or a compatible version listed in the root package manifest. Run npm ci, then:
| Command | Result |
|---|---|
npm start |
Interactive Angular example at http://localhost:4200/; the 46 original examples are under /demo/. |
npm run build |
Publishable Angular Package Format library in dist/ng-orgchart, and production site in dist/demo/browser. |
npm test |
Original unit and DOM integration suites, plus Angular TestBed/Vitest component contracts. |
npm run e2e |
Starts a local server, runs the Cypress browser suites, and stops the server. |
The examples share the same standalone component and keep the original English controls, data, page names and interactions. The regression matrix covers 390px and 1200px viewports, keyboard and pointer toggles, intermediate transition frames, drag/drop, minimap, family groups, editing and export. The map demo uses an external map provider; browser tests isolate it with a test double.