Skip to content

Commit

Permalink
Fix Error: Cannot find name 'Observable'
Browse files Browse the repository at this point in the history
  • Loading branch information
souzadriano committed Aug 9, 2017
1 parent e1872fc commit 363b382
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/components/google-places-autocomplete.ts
Original file line number Diff line number Diff line change
@@ -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/";
Expand Down Expand Up @@ -42,7 +42,7 @@ export class GooglePlacesAutocompleteComponent {
}
}

public autocomplete(input: string): Observable<any> {
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) : "";
Expand Down

0 comments on commit 363b382

Please sign in to comment.