Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 1122dc7

Browse files
docs(forms): fix code example for a custom form control
Closes #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

+2-2
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)