diff --git a/script/directives.js b/script/directives.js index f6335bbd5d..54a76c2b43 100644 --- a/script/directives.js +++ b/script/directives.js @@ -92,7 +92,7 @@ var removeWatch = !!scope.$eval(attrs.removeWatch); var useTimeout = !!scope.$eval(attrs.useTimeout); - var doRemoveWatch = scope.$watch(attrs.ngModel, function(value, oldValue) { + var doRemoveWatch = scope.$watch(attrs.text, function(value, oldValue) { var replaceMarkdown = function(){ var markdown = value;