aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/guide/dev_guide.forms.ngdoc
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/guide/dev_guide.forms.ngdoc')
-rw-r--r--docs/content/guide/dev_guide.forms.ngdoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/content/guide/dev_guide.forms.ngdoc b/docs/content/guide/dev_guide.forms.ngdoc
index 97d82bb1..cbb73abc 100644
--- a/docs/content/guide/dev_guide.forms.ngdoc
+++ b/docs/content/guide/dev_guide.forms.ngdoc
@@ -297,9 +297,9 @@ This example shows how to implement a custom HTML editor widget in Angular.
ctrl.formatters.push(function(value) {
try {
value = $sanitize(value || '');
- ctrl.emitValidity('HTML', true);
+ ctrl.setValidity('HTML', true);
} catch (e) {
- ctrl.emitValidity('HTML', false);
+ ctrl.setValidity('HTML', false);
}
});