Skip to content

Commit b5cee84

Browse files
committed
Merge pull request #6 from sochka/patch-2
on-change event callback receives new editor value
2 parents 75ce9dc + ceb111b commit b5cee84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/angular-json-editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ angular.module('angular-json-editor', []).constant('JsonEditorConfig', {
8484
editor.on('change', function () {
8585
// Fire the onChange callback
8686
if (typeof scope.onChange === 'function') {
87-
scope.onChange();
87+
scope.onChange(editor.getValue());
8888
}
8989
scope.$apply(function () {
9090
scope.isValid = (editor.validate().length === 0);

0 commit comments

Comments
 (0)