angular-js/src/app/info/info.component.ts
ExostFlash 96c336a3d2 Finish
2025-03-07 16:17:35 +01:00

18 lines
424 B
TypeScript

import { Component } from '@angular/core';
import { InfoService } from '../services/info.service';
@Component({
selector: 'app-info',
standalone: false,
templateUrl: './info.component.html',
styleUrl: './info.component.css'
})
export class InfoComponent {
infos: any[] = [];
constructor(private infoService: InfoService) {}
ngOnInit() {
this.infos = this.infoService.getInfos().slice().reverse();
}
}