How to use ng-required atribute in service portal?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2017 12:15 AM
Hi,
I want to highlight a mandatory field when the button is clicked. I know ng-required directive is there, but do not know how to use it. can someone explain how to use it?
Regards,
Rajeev
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2017 12:40 AM
Hi Rajiv,
You need to use this attribute within <form> tag.
Also, you can use the classes defined by angular to showcase valid, invalid, dirty, pristine, required to highlight your field.
Below link will help you out in understanding the whole process.
https://scotch.io/tutorials/angularjs-form-validation