Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //app.component.ts
- import { HttpClient } from '@angular/common/http';
- ...
- export class AppComponent {
- constructor(private http: HttpClient){}
- useApi(){
- this.http.get(`https://maps.googleapis.com/maps/api/place/textsearch/json?query=museo%ara$pacis&key=[MY-KEY]`)
- .subscribe(res => console.log(res))
- }
Add Comment
Please, Sign In to add comment