Skip to content

Commit

Permalink
MARP-1079 Update tittle on home tab after returning from the market d…
Browse files Browse the repository at this point in the history
…etail (#214)
  • Loading branch information
phhung-axonivy authored Oct 25, 2024
1 parent d598a43 commit 2790ca9
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions marketplace-ui/src/app/modules/home/home.component.ts
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'));
}
}

0 comments on commit 2790ca9

Please sign in to comment.