You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Validation errors of the angular-wysiwyg are not showing as part of the errors of the parent form. Is that the expected behavior? How to get the validation errors from angular-wysiwyg ?
The text was updated successfully, but these errors were encountered:
It took a little while, but I've found that if you surround the wysiwyg tag with an ng-form tag you can reference the forms $invalid,
(this assumes that you have added your own validation to ngModelCtrl.$validators)
<div ng-form="exampleForm">
<wysiwyg textarea-name="text" ng-model="data"></wysiwyg>
{{exampleForm.text.$invalid}} this didn't work for me
{{exampleForm.$invalid}} this did work however
</div>
Validation errors of the angular-wysiwyg are not showing as part of the errors of the parent form. Is that the expected behavior? How to get the validation errors from angular-wysiwyg ?
The text was updated successfully, but these errors were encountered: