Skip to content

Commit 1122dc7

Browse files
docs(forms): fix code example for a custom form control
Closes angular#1021
1 parent a3a9d4a commit 1122dc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/content/guide/forms.ngdoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,8 @@ The following example shows how to add two-way data-binding to contentEditable e
300300
});
301301

302302
// model -> view
303-
ctrl.$render = function(value) {
304-
elm.html(value);
303+
ctrl.$render = function() {
304+
elm.html(ctrl.$viewValue);
305305
};
306306

307307
// load init value from DOM

0 commit comments

Comments
 (0)