title: How can I print my object values(attributes)?
body: <p>model:</p>
  
  <pre><code>     export interface People {
         count: number,
         next: string,
         previous: any,
         results: {
            name: string;
            height: string;
            mass: string;
            hair_color: string;
            skin_color: string;
            eye_color: string;
            birth_year: string;
            gender: string;
            homeworld: string;
            films: string[];
            species: string[];
            vehicles: string[];
            starships: string[];
            created: Date;
            edited: Date;
            url: string;
          }
        }
  </code></pre>
  
  <p>service:</p>
  
  <pre><code>     export class StarwarsService {
  
       private url: string = "https://api.codetabs.com/v1/proxy?quest=https://swapi.co/api/";
       result: Array&lt;any&gt; = [];
  
       constructor(private http: HttpClient) { }
  
       getByContent(route: string): Observable&lt;any&gt; {
       for(let i = 1; i &lt; 87; i++) {
       this.result.push(this.http.get&lt;{people: People[]}&gt;(`${this.url}${route}/?page=${i}`));
  
       }
       }
  </code></pre>
  
  <p>component:</p>
  
  <pre><code>        export class TableComponent implements OnInit {
          people: People[] = [];
  
          constructor(private starWarsServ: StarwarsService) { }
  
  
          ngOnInit() {
            try {
              this.starWarsServ.getByContent(`${this.route}`)
              .subscribe(data =&gt; {
                {console.log(data['results']); this.people = data['results'].name;}
              })
  
  
            catch(err) {
              throw err;
            }
            }
  </code></pre>
  
  <p>I am trying to print data[].results.name, but it always return undefined.</p>
  
  <p>I set my objects as same as the API.</p>
  
  <p>I have tried a lot of things, but I cannot print.
  I am sorry if this is an easy task, but I just started programming...
  thank you!</p>
  
  <p>....................................</p>