I am currently studying Angular2. During my lessons, I came across a requirement to save data into an "any" array. The example provided looked like this:
import { Component } from '@angular/core';
import { GithubService } from '../../services/github.service';
@Component({
selector: 'profile',
template: `<h1>Profile Component</h1>`,
})
export class ProfileComponent {
user:any[];
constructor(private _githubService:GithubService){
// this._githubService.getUser().subscribe(user => {console.log(user)});
this._githubService.getUser().subscribe(user => {
this.user = user;
});
}
}
What does user:any[];
mean? I tried searching for it on Google and GitHub, but couldn't find any helpful information. Not sure where to look next.