From a3f593ae4f454c1be4d102c75c6783ec623be91c Mon Sep 17 00:00:00 2001 From: Daniel Breen <38893467+dapperdandev@users.noreply.github.com> Date: Fri, 2 Nov 2018 10:21:02 -0600 Subject: [PATCH 1/2] docs(changelog): fix typos, change 'ctrk' to 'ctrl' --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d397c037d003..1f3e17c52ee5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -746,7 +746,7 @@ If you rely on the $modelValue validation, you can overwrite the `min`/`max` val link: function(scope, element, attrs, ctrl) { var maxValidator = ctrl.$validators.max; - ctrk.$validators.max = function(modelValue, viewValue) { + ctrl.$validators.max = function(modelValue, viewValue) { return maxValidator(modelValue, modelValue); }; } @@ -1579,7 +1579,7 @@ If you rely on the $modelValue validation, you can overwrite the `min`/`max` val link: function(scope, element, attrs, ctrl) { var maxValidator = ctrl.$validators.max; - ctrk.$validators.max = function(modelValue, viewValue) { + ctrl.$validators.max = function(modelValue, viewValue) { return maxValidator(modelValue, modelValue); }; } From ba80717dda3283bb0c0dadb8e3033161a9ec1dc2 Mon Sep 17 00:00:00 2001 From: Daniel Breen <38893467+dapperdandev@users.noreply.github.com> Date: Fri, 2 Nov 2018 10:22:22 -0600 Subject: [PATCH 2/2] docs(guide/migration): fix typos, change 'ctrk' to 'ctrl' --- docs/content/guide/migration.ngdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/guide/migration.ngdoc b/docs/content/guide/migration.ngdoc index 74de3a418ffa..66137dbd4cfb 100644 --- a/docs/content/guide/migration.ngdoc +++ b/docs/content/guide/migration.ngdoc @@ -148,7 +148,7 @@ custom directive, as seen in the following example directive definition object: link: function(scope, element, attrs, ctrl) { var maxValidator = ctrl.$validators.max; - ctrk.$validators.max = function(modelValue, viewValue) { + ctrl.$validators.max = function(modelValue, viewValue) { return maxValidator(modelValue, modelValue); }; }