20/11/2017 Development / java script

import { HttpClient } from '@angular/common/http';

constructor(private http: HttpClient) {

// Make the HTTP request:

this.http.get('https://odete-app.herokuapp.com/colaboradores').subscribe(data => {
 // Read the result field from the JSON response.
 this.results = data;
 console.log(data);
});

}