-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MARP-1079 Update tittle on home tab after returning from the market d…
…etail (#214)
- Loading branch information
1 parent
d598a43
commit 2790ca9
Showing
1 changed file
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
import { Component } from '@angular/core'; | ||
import { Component, inject } from '@angular/core'; | ||
import { ProductComponent } from '../product/product.component'; | ||
import { TranslateService } from '@ngx-translate/core'; | ||
import { Title } from '@angular/platform-browser'; | ||
|
||
@Component({ | ||
selector: 'app-home', | ||
standalone: true, | ||
imports: [ProductComponent], | ||
templateUrl: './home.component.html', | ||
styleUrl: './home.component.scss', | ||
styleUrl: './home.component.scss' | ||
}) | ||
export class HomeComponent {} | ||
export class HomeComponent { | ||
translateService = inject(TranslateService); | ||
|
||
constructor(private readonly titleService: Title) { | ||
this.titleService.setTitle(this.translateService.instant('common.branch')); | ||
} | ||
} |