feat: refactor AboutComponent to be standalone and include CommonModule feat: refactor BlogComponent to be standalone and include CommonModule feat: refactor ContactSidebarComponent to be standalone and include CommonModule feat: refactor ContactComponent to be standalone and include CommonModule and FormsModule feat: refactor NavbarComponent to be standalone and include CommonModule and RouterModule feat: refactor ProjectsComponent to be standalone and include CommonModule feat: refactor ResumeComponent to be standalone and include CommonModule feat: refactor AppComponent to be standalone and include necessary components feat: remove AppModule in favor of standalone components fix: update tests to include HttpClientTestingModule where necessary fix: update routing module to export appRoutes without NgModule chore: add environment configuration for production
30 lines
785 B
TypeScript
30 lines
785 B
TypeScript
import { Component, OnInit } from '@angular/core';
|
|
import { CommonModule } from '@angular/common';
|
|
import { CvService } from '../services/cv.service';
|
|
import { IAbout } from './about.model';
|
|
import { BaseComponent } from '../base/base.component';
|
|
|
|
@Component({
|
|
selector: 'app-about',
|
|
templateUrl: './about.component.html',
|
|
styleUrl: './about.component.scss',
|
|
standalone: true,
|
|
imports: [CommonModule]
|
|
})
|
|
export class AboutComponent extends BaseComponent<IAbout> implements OnInit {
|
|
constructor(svc: CvService){
|
|
super(svc);
|
|
}
|
|
|
|
ngOnInit(): void {
|
|
this.getAbout();
|
|
}
|
|
|
|
getAbout(): void{
|
|
this.svc.getHobbies(this.candidateId).subscribe((response: IAbout) => {
|
|
this.svc.about = this.svc.about ?? response;
|
|
this.assignData(response);
|
|
});
|
|
}
|
|
}
|