@Component({
selector: 'app-aula',
templateUrl: './aula.component.html',
styleUrls: ['./aula.component.scss'],
})
export class AulaComponent implements OnInit {
@HostBinding('class') classes = 'row';
students: Student[] ;
desk: number;
constructor( public apiService: ApiService, private route: Router) { }
ngOnInit() {
this.getStudentsList();
}
getStudentsList() {
this.apiService.getStudentsList().subscribe(
(res: Student[]) => {
this.students = res;
console.log(typeof(this.students));
console.log(this.students);
});
}
Bernat Moragas
- 1
- 1
Bernat Moragas
- 1
- 1
Bernat Moragas
- 1
- 1