@wawjs/ngx-ace
v22.0.11
Published
Angular Ace editor integration package from Web Art Work.
Maintainers
Readme
@wawjs/ngx-ace
ngx-ace is the extracted Ace editor package from the Web Art Work Angular packages workspace.
Installation
npm i --save @wawjs/ngx-aceUsage
import { provideNgxAce } from '@wawjs/ngx-ace';
export const appConfig = {
providers: [
provideNgxAce({
mode: 'javascript',
theme: 'github',
useWorker: false,
}),
],
};Available features
AceComponentfor template-friendly editor embeddingAceDirectivefor direct editor instance controlprovideNgxAce()for default config registrationregisterAceMode()andregisterAceTheme()for lazy feature loadingAceConfigInterface,AceConfig, and related types
Accessibility
- Pass
[ariaLabel]="'...'"onAceComponent(orAceDirective) to give the editor an accessible name. It is applied both as a hostaria-labeland, once the editor initializes, asaria-labelon Ace's own hidden text input so screen readers announce it correctly.
AI Coding Agents
This package includes AI.md with copyable instructions for Codex, Claude Code, Cursor, and other coding agents.
Copy this into the consuming project's AGENTS.md, CLAUDE.md, or equivalent file:
- This Angular project uses `@wawjs/ngx-ace` for Ace editor integration.
- Import public APIs from `@wawjs/ngx-ace`.
- Prefer `provideNgxAce({...})` for editor defaults.
- Prefer `AceComponent` for template usage and `AceDirective` for direct editor control.
- Use `registerAceMode()` and `registerAceTheme()` for lazy mode/theme registration.
- Keep browser-only editor behavior SSR-safe.