From 363b382f0563bc8808f94f96f2a9011160048bf1 Mon Sep 17 00:00:00 2001 From: Adriano de Souza Date: Tue, 8 Aug 2017 21:40:33 -0300 Subject: [PATCH] Fix Error: Cannot find name 'Observable' --- package.json | 2 +- src/components/google-places-autocomplete.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 65267b6..49f2832 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ionic2-google-places-autocomplete", - "version": "1.0.0", + "version": "1.0.1", "description": "Google Places autocomplete for Ionic 2.2+", "main": "./dist/index.js", "typings": "./dist/index.d.ts", diff --git a/src/components/google-places-autocomplete.ts b/src/components/google-places-autocomplete.ts index 8db5a35..b704361 100644 --- a/src/components/google-places-autocomplete.ts +++ b/src/components/google-places-autocomplete.ts @@ -1,7 +1,7 @@ import { Component, Input, Output, EventEmitter, Injectable, Inject } from '@angular/core'; import { Http } from '@angular/http'; -import { Observable } from 'rxjs/observable'; +import { Observable } from 'rxjs/Rx'; import 'rxjs/add/operator/map'; const GOOGLE_API_URL = "https://maps.googleapis.com/maps/api/place/"; @@ -42,7 +42,7 @@ export class GooglePlacesAutocompleteComponent { } } - public autocomplete(input: string): Observable { + public autocomplete(input: string) { let typesParam: string = this.types != null ? ("&types=" + this.types) : ""; let typeParam: string = this.type != null ? ("&type=" + this.type) : ""; let offsetParam: string = this.offset != null ? ("&offset=" + this.offset) : "";