You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It occurred to me that a nice feature (if its not too much work) would be to have a drop down menu of institutions and individuals for people to pick from. I guess the database could be generated on-the-fly from information put in by people? Realize I know nothing about computing and so this may be a ridiculous request.
Thanks,
Todd
varapp=angular.module('myapp',['ngMaterial']).controller("autocompleteController",function($http,$q){//this searches the backendthis.querySearch=function(term){console.log('in querySearch '+term)vard=$q.defer();$http({header: 'Content-Type: application/json',method: 'POST',url: '/search',data: {term: term}}).then(function(result){console.log(result)d.resolve(result.data);});returnd.promise;}});</script><divid="searchContainer">
<!-- this is the autocomplete thing -->
<md-autocompleteflexid="searchBar"md-no-cache="true"md-selected-item="ctrl.selectedItem"md-search-text="ctrl.searchText"md-items="item in ctrl.querySearch(ctrl.searchText)"md-item-text="item.name"md-floating-label="Search People"md-min-length="1"><md-item-template>{{item.name}}</md-item-template></md-autocomplete>
The text was updated successfully, but these errors were encountered:
We should try to use the autocomplete functionality in the various inputs (create/modify information etc). I have an example made: https://github.com/slmyers/md-autocomplete-example
relevant code snippet:
The text was updated successfully, but these errors were encountered: