I am developing an angular app with angular 1.4 and ui.router 0.2.8. I am using ng-bind-html to print error messages while form validation.But it is not working. In my controller
$scope.nameError = $sce.trustAsHtml("<p class='form-error'>Please enter your full name</p>");
In my html page ,inside
<span ng-bind-html="nameError"></span>
Showing no errors.How can I solve this issue and thanks in advance?