ahmadshalloufuhh's picture
Update src/app/components/body/about/about.component.ts
17eace8 verified
raw
history blame contribute delete
693 Bytes
import {Component, Input, OnInit} from '@angular/core';
import {MatCard, MatCardContent} from "@angular/material/card";
import {NgIf} from "@angular/common";
import {RouterLink} from "@angular/router";
import {MatButton} from "@angular/material/button";
@Component({
selector: 'app-about',
standalone: true,
imports: [
MatCard,
MatCardContent,
NgIf,
RouterLink,
MatButton
],
templateUrl: './about.component.html',
styleUrl: './about.component.css'
})
export class AboutComponent implements OnInit{
@Input()
whatAbout = 'general';
constructor() { }
ngOnInit() {
if (this.whatAbout === undefined) {
this.whatAbout = 'general';
}
}
}