javascript - Showing Suggestion box for multiple email ids with Angular JS -
i have created angular js function show email suggestions google admin directory.i calling service inside angular js function emails. want mark form submission multiple employees adding emails in above text field, suggestions list of emails show 1 employee,is there simple way show suggestions when adding multiple emails in text field
below angular js function
$scope.getemail= function(val) { return $http.get('https://1-dot- directory.appspot.com/_ah/api/mydirectory/v1/query/'+val) .then(function(response){ return response.data.items.map(function(item){ return item.email; }); }); };
you can first show names of persons ? , if have selected person can show emails ? if have more one.
Comments
Post a Comment