Last active
June 27, 2017 16:49
-
-
Save matthieu-D/71369f6df788d12052d7df647e5dc1f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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