I have a custom validation, for example, blacklisted. My model value and blacklisted array are the following:
model = "not_blacklisted_yet"
blacklisted = ["foo", "bar"]
I want to add "not_blacklisted_yet" to blacklisted, and to fire the validation programmatically. If I just add the element, the validation is not triggered because I have not changed the models viewValue.
How can I achieve this?
EDIT, atach plunker: http://plnkr.co/edit/L2sJY9VOJ7s8lKCm88sM?p=preview
blacklistedto trigger the validation you are talking about