Skip to content

Commit

Permalink
add ace-builds script
Browse files Browse the repository at this point in the history
  • Loading branch information
giscafer committed Feb 9, 2018
1 parent 54cb412 commit 2763787
Show file tree
Hide file tree
Showing 353 changed files with 332,269 additions and 5 deletions.
20 changes: 15 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,27 @@ default theme: `chrome`

# Install

`npm i ng-ace`
`npm i ng-ace-tern`



## Sample Usage

add scripts `ace-builds` in your `index.html` or `angular-cli.json`

eg:

```html
<script src="./assets/ace-builds/src-noconflict/ace.js"></script>
```


# Sample Usage

```ts
import { Component } from '@angular/core';

import { AceEditorDirective } from 'ng-ace-tern';

import 'brace/theme/clouds';
import 'brace/mode/sql';

@Component({
directives: [AceEditorDirective],
template: `
Expand Down Expand Up @@ -62,6 +71,7 @@ Important pieces to note in the HTML template: `[ace-editor]` attribute, `[text]
## Related

[ng-ace](https://github.com/giscafer/ng-ace)
[Ace.Tern](https://github.com/sevin7676/Ace.Tern)

# License

Expand Down
Loading

0 comments on commit 2763787

Please sign in to comment.