We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60138f8 commit 6405353Copy full SHA for 6405353
src/app/services/github.service.ts
@@ -2,6 +2,7 @@ import { Injectable } from "@angular/core";
2
import { HttpClient } from "@angular/common/http";
3
import { Observable } from "rxjs";
4
import { map } from "rxjs/operators";
5
+import { Repo } from "../pages/user-search/models/repo";
6
7
@Injectable({
8
providedIn: "root",
@@ -18,7 +19,10 @@ export class GithubService {
18
19
})
20
);
21
} */
- getRepos(username: string) {
22
- return this.http.get(`https://api.github.com/users/${username}/repos`);
+ getRepos(username: string): Observable<any> {
23
+ const returns = this.http.get(`https://api.github.com/users/${username}/repos`);
24
+ console.log(returns.subscribe((x) => console.log(x)));
25
+ console.log('returns type', typeof(returns));
26
+ return returns;
27
}
28
0 commit comments