Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Add basePath option in a non-breaking way #167

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add info about basePath to the readme
fredrikholm authored Mar 14, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 4893467371a52ef2c65cf1b3900c78daa63eae7c
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -134,6 +134,14 @@ This should be the folder on disk where `ace.js` resides.
workerPath: '/path/to/ace/folder'
}"></div>
```
You could also set the `basePath` option, which will force ace to look for all workers and themes in the folder you specify.

```html
<div ui-ace="{
basePath: '/path/to/ace/workers-and-themes'
}"></div>
```
Please note that ace requests workers and themes dynamically, so bundling them and referencing the bundle using `basePath` doesn't work.

### Working with ng-model