Skip to content
This repository has been archived by the owner on May 25, 2019. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil committed Jul 1, 2014
1 parent 71e05e7 commit 14d6cbe
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ Finally, add the directive to your html,
as attribute :

```html
<textarea ui-codemirror></textarea>
// or
// Not well supported yet
// <textarea ui-codemirror></textarea>

<div ui-codemirror></div>
```

Expand Down Expand Up @@ -64,8 +65,6 @@ myAppModule.controller('MyController', [ '$scope', function($scope) {
If you update this variable with the new values, they will be merged and the ui will be updated.

```xml
<textarea ui-codemirror="editorOptions" ng-model="x"></textarea>
// or
<ui-codemirror ui-codemirror-opts="editorOptions"></ui-codemirror>
```

Expand All @@ -84,7 +83,7 @@ If you apply the refresh directive to element then any change to do this scope v
_The ui-refresh directive expects a scope variable that can be any thing...._

```html
<textarea ui-codemirror ng-model="x" ui-refresh='isSomething'></textarea>
<div ui-codemirror ng-model="x" ui-refresh='isSomething'></div>
```

Now you can set the _isSomething_ in the controller scope.
Expand Down

0 comments on commit 14d6cbe

Please sign in to comment.