angular-ui / ui-codemirror

This directive allows you to add CodeMirror to your textarea elements.
http://angular-ui.github.io/ui-codemirror
MIT License
378 stars 193 forks source link

[D] Makes the onChange event handled by ngChange #14

Closed douglasduteil closed 10 years ago

douglasduteil commented 11 years ago

I plan to directly use ngChange to handle the CodeMirror change event.

<textarea ui-codemirror ng-model="foo" ng-change="change()">

What you think about it ?

ProLoser commented 11 years ago

If the original method isn't broken then I don't see why this additional approach can't hurt.