Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Last active June 27, 2017 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/71369f6df788d12052d7df647e5dc1f5 to your computer and use it in GitHub Desktop.
Save matthieu-D/71369f6df788d12052d7df647e5dc1f5 to your computer and use it in GitHub Desktop.
import { Http } from '@angular/http';
import 'rxjs/add/operator/map';
.
.
.
ngAfterViewInit() {
this.plt.ready().then(() => {
this.http.get('https://oghuxxw1e6.execute-api.us-east-1.amazonaws.com/dev')
.map(res => res.json())
.subscribe(restaurants => this.initMap(restaurants));
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment