1
- import {
2
- ChangeDetectionStrategy ,
3
- Component ,
4
- computed ,
5
- inject ,
6
- } from '@angular/core' ;
7
- import { toSignal } from '@angular/core/rxjs-interop' ;
1
+ import { ChangeDetectionStrategy , Component } from '@angular/core' ;
8
2
import { ReactiveFormsModule } from '@angular/forms' ;
9
- import { TranslocoService } from '@jsverse/transloco' ;
10
3
11
4
import { ArticlesListContainerComponent } from '@angular-love/blog/articles/feature-list' ;
12
5
import { UiArticleCardComponent } from '@angular-love/blog/articles/ui-article-card' ;
@@ -15,7 +8,7 @@ import { PartnersComponent } from '@angular-love/blog/partners/ui-partners';
15
8
import { CardComponent } from '@angular-love/blog/shared/ui-card' ;
16
9
import { FeatureLatestArticlesComponent } from '@angular-love/feature-latest-articles' ;
17
10
18
- import { hoaHireUs , hoaHiring , partnersList } from './partners' ;
11
+ import { hoaHireUs , partnersList } from './partners' ;
19
12
20
13
@Component ( {
21
14
selector : 'al-home-page' ,
@@ -35,16 +28,6 @@ import { hoaHireUs, hoaHiring, partnersList } from './partners';
35
28
changeDetection : ChangeDetectionStrategy . OnPush ,
36
29
} )
37
30
export class HomePageComponent {
38
- private readonly _translocoService = inject ( TranslocoService ) ;
39
- private readonly _hoaHireUs = hoaHireUs ;
40
- private readonly _hoaHiring = hoaHiring ;
41
-
31
+ protected readonly hoaHireUs = hoaHireUs ;
42
32
protected readonly partnersList = partnersList ;
43
- protected readonly lang = toSignal ( this . _translocoService . langChanges$ , {
44
- initialValue : this . _translocoService . getActiveLang ( ) ,
45
- } ) ;
46
-
47
- protected readonly hoaMainPartner = computed ( ( ) => {
48
- return this . lang ( ) === 'en' ? [ this . _hoaHireUs ] : [ this . _hoaHiring ] ;
49
- } ) ;
50
33
}
0 commit comments