Files
Portfolio/src/app/components/footer/footer.component.ts
2023-02-24 20:37:52 +01:00

21 lines
507 B
TypeScript

import {Component, OnInit} from '@angular/core';
import {BackendService} from "../../services/backend.service";
import {Social} from "../../models/social";
@Component({
selector: 'app-footer',
templateUrl: './footer.component.html',
styleUrls: ['./footer.component.scss']
})
export class FooterComponent implements OnInit {
public socialLinks: Social[];
public constructor(private backend: BackendService) {}
async ngOnInit() {
this.socialLinks = await this.backend.getSocials();
}
}