Hi I am working on an AngularJS app with a field to select multiple email addresses from a remote source. I am using Angular UI Select for that field. User can also enter a valid email which does not exist. The problem is how do I restrict the user from entering an invalid email.
Here is the sample code snippet:
<ui-select multiple tagging tagging-label="('new' email)" ng-model="emails" theme="bootstrap" sortable="true" required>
<ui-select-choices repeat="email in emails track by emailId" refresh="refreshEmailAddresses($select.search)"
refresh-delay="0">
</ui-select-choices>
</ui-select>