93. Make Http Get Request and use RxJs Operators to transform the response in the Angular.

preview_player
Показать описание
Hi Friends
In this video, we will see how to make the Http Get Request and use RxJS operators to transform the response in the Angular.

If you like my video, please subscribe to my channel.

#Angular #leelawebdev
Рекомендации по теме
Комментарии
Автор

getPosts() {
this.http
.pipe(
map((response) => {
let posts = [];
for (let key in response) {
posts.push(response[key]);
}
return posts;
})
)
.subscribe((response) => {
console.log(response);
});
}

I am getting error on the line, push(response[key]):-- Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'Object'.
No index signature with a parameter of type 'string' was found on type 'Object'.ts(7053)

hafeezbadure
join shbcf.ru