Example of Angular-Validation with Custom Javascript function

Control below NOT in a form, doesn't have problem