Support ngRequired as part of angular form submition

Allow user to add attribute "ng-required" as same as other standard angular form elements.
it will set the $error.required error flag as standard.

The below error message will show when form validated.
<span ng-show="xxxForm.content.$error.required && validated" class="error">XXX不能为空</span>