I am getting this error with my component not sure what to do?
here is the component:
import { Component, OnInit } from \'@angular/core\';
import { H
here: this.http.get you are declaring that http.get's response data's type would be of ItemsResponse. and before that, inside your class you are declaring that results is an array of strings: results: string[];. but inside http's response, you are assigning the response to this.results.
try this.results = data.results.
but make sure that the type of the response is truly of type ItemsResponse. maybe use console.log