Catalysts / cat-angular

Basic support for Angular Apps
Apache License 2.0
7 stars 16 forks source link

Extended the catValidationService to be able to set & clear specific fieldErrors #55

Closed clackner closed 8 years ago

clackner commented 8 years ago

Currently the catValidationService is used by calling the "updateFromRejection" function from within the httpInterceptor.

This solution does only work, if the frontend receives a faulty message from the backend. But if there is some frontend-validation going on, i want to be able to set specific error messages for some specific fields without the need to hit the backend with faulty data.

So i implemented basically 2 functions - one for creating a specific field error and one for clearing errors of a specific field.