title: how to get modified text from angular ace editor
body: <p>I'm using angular js Ace plugin with a directive</p>
  
  <pre><code>&lt;div ng-model="fileContent" ui-ace="aceOptions"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I have setup the file content to fileContent variable on a scope.</p>
  
  <p>I can see the editor showing up with data. But I'm not able to get the modified file content in the editor.
  How do I get the changed content of that fileContent model.</p>
  
  <p>I'm also getting. when I set the actual value to the model.</p>
  
  <pre><code>Error: [$rootScope:inprog] $digest already in progress
  http://errors.angularjs.org/1.3.2/$rootScope/inprog?p0=%24digest
      at REGEX_STRING_REGEXP (http://127.0.0.1:8080/vendor/angular/angular.js:80:12)
      at beginPhase (http://127.0.0.1:8080/vendor/angular/angular.js:14553:15)
      at Scope.$get.Scope.$apply (http://127.0.0.1:8080/vendor/angular/angular.js:14297:11)
      at link.executeUserCallback (http://127.0.0.1:8080/vendor/angular/angular-ui-ace/ui-ace.js:199:19)
      at Array.link.listenerFactory.onChange (http://127.0.0.1:8080/vendor/angular/angular-ui-ace/ui-ace.js:237:15)
      at r._signal (http://127.0.0.1:8080/vendor/angular/ace-builds/src-min-noconflict/ace.js:1:48755)
      at onChange (http://127.0.0.1:8080/vendor/angular/ace-builds/src-min-noconflict/ace.js:1:149653)
      at r._signal (http://127.0.0.1:8080/vendor/angular/ace-builds/src-min-noconflict/ace.js:1:48755)
      at insertInLine (http://127.0.0.1:8080/vendor/angular/ace-builds/src-min-noconflict/ace.js:1:120507)
      at insert (http://127.0.0.1:8080/vendor/angular/ace-builds/src-min-noconflict/ace.js:1:119301)
  </code></pre>