Questions tagged [subscribe]
994 questions
-3
votes
1 answer
Property 'subscribe' does not exist on type {}
Service.ts
import { Injectable } from '@angular/core';
const RELEASES = [
{
id: 1,
title: "Release 1",
titleUrl: "release-1",
year: "2016"
},
{
id: 2,
title: "Release 2",
titleUrl: "release-2",
year: "2016"
},
{
id: 3,
…

Alexandr Belov
- 1,804
- 9
- 30
- 43
-4
votes
2 answers
How to loop through array of objects in angular 6?
I am very new to angular and I am assigned to a task where I want to get data from an API and iterate and display it in a chart. My angular version is 6.
This is the response JSON format, It is a list of objects-
[
{
"counts": 0,
…

Dasun
- 602
- 1
- 11
- 34