docs(forms): fix code example for a custom form control

Closes #1021
This commit is contained in:
Pawel Kozlowski 2013-01-05 22:47:36 +01:00
parent 759cba1a8d
commit d1d5761232

View file

@ -300,8 +300,8 @@ The following example shows how to add two-way data-binding to contentEditable e
});
// model -> view
ctrl.$render = function(value) {
elm.html(value);
ctrl.$render = function() {
elm.html(ctrl.$viewValue);
};
// load init value from DOM