I'm facing an issue with the code below, as it's not working properly. I want to return an observable once the promise is resolved. Any thoughts or suggestions would be greatly appreciated.
getParalelos() {
let _observable;
this.getToken().subscribe(token => {
_observable = this.http.get(`${this.url}/paralelo?token=${this.token}`, httpOptions)
})
return _observable;
}