I have created this <textarea> but ngMaxlength and ngMinlength are not working. For example when I typed just a single character the textarea became invalid. Then I've found that the directives work if I disable Strict Contextual Escaping. However, this is strongly discouraged.
Example in jsFiddle: https://jsfiddle.net/naXa/zsnLupvd/ (try to enter some text in textarea to see an error message, then enable $sceProvider, rerun, clear all text, and try typing again)
I have created this
<textarea>
butngMaxlength
andngMinlength
are not working. For example when I typed just a single character the textarea became invalid. Then I've found that the directives work if I disable Strict Contextual Escaping. However, this is strongly discouraged. Example in jsFiddle: https://jsfiddle.net/naXa/zsnLupvd/ (try to enter some text in textarea to see an error message, then enable$sceProvider
, rerun, clear all text, and try typing again)I use TinyMCE and AngularUI wrapper for TinyMCE.
Why are
ngMaxlength
andngMinlength
not working in this case? And how to fix it?