ChrisCorrigan
1/13/2016 - 7:24 PM

location-test.js

<body>
	<div class="well">
		{{> inputAutocomplete settings=settings id="title" name="title" class="input-xlarge" placehorder="Enter search"}}
	</div>
  <p>Your current location: {{curloc}}</p>
</body>

if (Meteor.isClient) {
  var currentLocation = 'unknown';

  curloc: function () {
    return currentLocation;
  } 
});

Template.body.events({
  "autocompleteselect input": function (event, templ, obj) {
    currentLocation = obj.location;
  }
});