AJAX Backend call Angular
@Injectable()
export class GithubService {
constructor(protected http: HttpClient) {}
call(username: string) {
return this.http.get<User>('http://localhost:8080/getuser/'.concat(username),
{headers: {}}). map(res => res);
}
}