# ngx-ace-wrapper
**Repository Path**: mirrors_zefoy/ngx-ace-wrapper
## Basic Information
- **Project Name**: ngx-ace-wrapper
- **Description**: Angular wrapper library for Ace
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-08-19
- **Last Updated**: 2026-05-02
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Angular Ace Wrapper
This is an Angular wrapper library for the [Ace](http://ace.c9.io/). To use this library you should get familiar with the Ace documentation as well since this documentation only explains details specific to this wrapper.
### EOL notice
Version 17.0.0 will be the last release of this library. I recommend you to switch to using ngx-ace-wrapper-laze package which is better maintained and uses lazy loading.
### Quick Links
[Example application](https://zefoy.github.io/ngx-ace-wrapper/)
|
[StackBlitz example](https://stackblitz.com/github/zefoy/ngx-ace-wrapper/tree/master)
|
[Ace documentation](http://ace.c9.io/#nav-api)
### Building the library
```bash
npm install
npm run build
```
### Running the example
```bash
npm install
npm run start
```
### Installing and usage
```bash
npm install ngx-ace-wrapper --save
```
##### Load the module for your app (with global configuration):
Providing the global configuration is optional and when used you should only provide the configuration in your root module.
```javascript
import { AceModule } from 'ngx-ace-wrapper';
import { ACE_CONFIG } from 'ngx-ace-wrapper';
import { AceConfigInterface } from 'ngx-ace-wrapper';
const DEFAULT_ACE_CONFIG: AceConfigInterface = {
};
@NgModule({
...
imports: [
...
AceModule
],
providers: [
{
provide: ACE_CONFIG,
useValue: DEFAULT_ACE_CONFIG
}
]
})
```
##### Use it in your HTML template (with custom configuration):
This library provides two ways to create a Ace element, component for simple use cases and directive for more custom use cases.
**COMPONENT USAGE**
Simply replace the element that would ordinarily be passed to `Ace` with the ace component.
You also need to import brace and the used mode(s) and theme(s):
```javascript
import 'brace';
import 'brace/mode/text';
import 'brace/theme/github';
```
```html