Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- searchLocation() {
- if (!this.autoComplete) {
- this.autocompleteItems = [];
- return;
- }
- let loader = this.loadingCtrl.create({
- content: 'Loading'
- });
- loader.present();
- this.service.getPlacePredictions({
- input: this.autoComplete
- }, (predictions, status) => {
- this.autocompleteItems = predictions;
- loader.dismiss(null, null, { keyboardClose: false });
- })
- }
Add Comment
Please, Sign In to add comment