I'm using this code to translate each word with translateBack
<span *ngFor="let word of getWords(); index as i">
<button (click)="speak(word)"
[matTooltip]="translateBack(word) | async">{{word}}</button>
</span>
where translateBack is
translateBack(word: string) {
const options = {q: word, source: 'ru-RU', target: 'en-GB'};
return this._http.post(url + key, options).pipe(
take(1),
map((res: any) => res.data.translations[0].translatedText)
)
}
but in my console it shows a never-ending log of http requests. How do just take one? (i tried take(1))