Closed ketankulkarni closed 7 years ago
html code -
js code - import '../lib/collections/member.js'; Router.route('/','autoComplete');
Template.autoComplete.helpers({ settings : function() { return { position: 'bottom', limit: 2, rules: [ { collection: Member, field: 'name', token:'@', matchAll: true, template: Template.titles, } ] }; } });
when i change the name of collection to Meteor.users or Meteor.members, then autocomplete displayes but not matching records found
html code -
Auto Complete
{{> inputAutocomplete settings=settings id="jobTitle" class="form-control" name="titles" placeholder="enter name" autocomplete="on"}}js code - import '../lib/collections/member.js'; Router.route('/','autoComplete');
Template.autoComplete.helpers({ settings : function() { return { position: 'bottom', limit: 2, rules: [ { collection: Member, field: 'name', token:'@', matchAll: true, template: Template.titles, } ] }; } });