Guest User

Untitled

a guest
Jul 18th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. searchLocation() {
  2. if (!this.autoComplete) {
  3. this.autocompleteItems = [];
  4. return;
  5. }
  6. let loader = this.loadingCtrl.create({
  7. content: 'Loading'
  8. });
  9. loader.present();
  10. this.service.getPlacePredictions({
  11. input: this.autoComplete
  12. }, (predictions, status) => {
  13. this.autocompleteItems = predictions;
  14. loader.dismiss(null, null, { keyboardClose: false });
  15. })
  16. }
Add Comment
Please, Sign In to add comment