My Page doesn't have Form, i want to validate my controls and show validation messages. I can able to see the validation only with forms. How to do the validation without Forms. Appreciate you assistance.
2 Answers
Two-way data binding supported need of you, you don't need form for this. You can hide or show your notification when your condition provided or another cases.
For example:
<input type="text" ng-model="yourObjectModel">
<div ng-show="yourObjectModel.length < 0" class="alert alert-danger">
Input must be filled
</div>
<div ng-show="yourObjectModel.length > 15" class="alert alert-warning">
Your value can't bigger than 15
</div>