Encountering an error with AngularJS:
https://i.sstatic.net/TBHem.png
The issue is related to the titleInput
TextBox name property:
@Html.TextBox("titleInput", null, new { @placeholder = @T("Message title"), @class = "form-control", ng_model = "feed.feedData().title", ng_required = "true" })
The error seems to be originating from the FeedValidationService
method:
public titleInputValidation(messageForm: any, isTitleInputValid: boolean): boolean {
if (messageForm.titleInput.$valid) {
isTitleInputValid = true;
}
else {
isTitleInputValid = false;
}
return isTitleInputValid;
}
All functionalities are working fine except for this browser error. Any suggestions on how to resolve this?