I'm working on retrieving data from different API's and I am facing some issues.
The first part is working well, the code is below :
ngOnInit(): void {
this.http.get('http://.../api/getData?table=getdata&filter=remediation_status:1')
.subscribe( data => { this.incidents = data, console.log(data);})
}
For the second step, I try to retrieve data from another API URL and in the same component using values retrieved during the first step but there are seen as "undefined".
For example `console.log(this.incidents); ` returns "undefined" while it's defined just above.
Is it possible to do retrieve data from an API and used it in the same component (in the ngOnInit():) or not ? Thank you in advance