title: Angular : error TS2339: Property 'data' does not exist on type 'Object
body: <p>I am a beginner in Angular, and I encounter a strange error, it sais that it didn't find the property data in the API object I am trying to get data from a simple API, and display it in my page here is the code.</p>
  
  <pre><code>export class ArticlesComponent implements OnInit {
   users: Object;
  
    constructor(private data: DataService) { }
  
    ngOnInit(): void {
      this.data.getUsers().subscribe(data=&gt;{
        this.users=data;
        console.log(this.users);
  
      });
    }
  
  
  }
  </code></pre>
  
  <p>The Template is like so </p>
  
  <pre><code>&lt;ul *ngIf="users"&gt;
    &lt;li *ngFor="let user of users.data"&gt;
      &lt;img [src]="user.avatar"&gt;
       &lt;p&gt;{{user.first_name}} {{user.last_name}}&lt;/p&gt;
    &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>I have been stock here for hours. When I console log, there is a data property and has all the information of the users, that is what I am trying to display, it shows me that   does not exist. and here is the API link :  <a href="https://reqres.in/api/users" rel="nofollow noreferrer">https://reqres.in/api/users</a>
  Please help.</p>
  
  <p>And the function in the service class is : </p>
  
  <pre><code>export class DataService {
  
    constructor(private http: HttpClient) { }
    getUsers(){
         return this.http.get('https://reqres.in/api/users?page=2');
    }
  }
  </code></pre>