diff --git a/src/app/about/about.component.ts b/src/app/about/about.component.ts index d157a46..bc6b7a8 100644 --- a/src/app/about/about.component.ts +++ b/src/app/about/about.component.ts @@ -14,6 +14,14 @@ export class AboutComponent extends BaseComponent implements OnInit { } ngOnInit(): void { - this.init(); + // this.init(); + this.getAbout(); + } + + getAbout(): void{ + this.svc.getHobbies(this.candidateId).subscribe((response: IAbout) => { + this.svc.about = this.svc.about ?? response; + this.assignData(response); + }); } } diff --git a/src/app/blog/blog.component.ts b/src/app/blog/blog.component.ts index 15d8b4d..103860c 100644 --- a/src/app/blog/blog.component.ts +++ b/src/app/blog/blog.component.ts @@ -16,6 +16,14 @@ export class BlogComponent extends BaseComponent implements OnInit{ } ngOnInit(): void { - this.init(); + // this.init(); + this.getBlog(); + } + + getBlog(){ + this.svc.getBlog(this.candidateId).subscribe((response: IBlog) => { + this.svc.blog = this.svc.blog ?? response; + this.assignData(response); + }); } } diff --git a/src/app/contact-sidebar/contact-sidebar.component.html b/src/app/contact-sidebar/contact-sidebar.component.html index 3f2e74f..f2ca587 100644 --- a/src/app/contact-sidebar/contact-sidebar.component.html +++ b/src/app/contact-sidebar/contact-sidebar.component.html @@ -3,7 +3,7 @@