To apply the validation rule use the directive on an element using ngModel. The associated ngMessage for the attribute will automatically appear when more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed There's a method in FormController.$setValidity but that doesn't look like a public API so I rather not use it. asked 4 years ago viewed 191940 times active 12 days ago Upcoming Events 2016 Community Moderator Election ends in 3 days Get the weekly newsletter! http://digitalezines.com/custom-error/custom-error-in-asp-net.html
There is no easy way to poke a field name or attribute value into a message, unfortunately, but there is the ability to override a message.