added language routing system
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
@if (error()) {
|
||||
<div class="novo-error">
|
||||
<p>{{ error() }}</p>
|
||||
<a routerLink="/" class="novo-back-link">Вернуться</a>
|
||||
<a [routerLink]="'/' | langRoute" class="novo-back-link">Вернуться</a>
|
||||
</div>
|
||||
}
|
||||
|
||||
@@ -204,7 +204,7 @@
|
||||
@if (error()) {
|
||||
<div class="dx-error">
|
||||
<p>{{ error() }}</p>
|
||||
<a routerLink="/" class="dx-back-link">Вернуться на главную</a>
|
||||
<a [routerLink]="'/' | langRoute" class="dx-back-link">Вернуться на главную</a>
|
||||
</div>
|
||||
}
|
||||
|
||||
|
||||
@@ -9,10 +9,11 @@ import { Subscription } from 'rxjs';
|
||||
import { environment } from '../../../environments/environment';
|
||||
import { SecurityContext } from '@angular/core';
|
||||
import { getDiscountedPrice } from '../../utils/item.utils';
|
||||
import { LangRoutePipe } from '../../pipes/lang-route.pipe';
|
||||
|
||||
@Component({
|
||||
selector: 'app-item-detail',
|
||||
imports: [DecimalPipe, RouterLink, FormsModule],
|
||||
imports: [DecimalPipe, RouterLink, FormsModule, LangRoutePipe],
|
||||
templateUrl: './item-detail.component.html',
|
||||
styleUrls: ['./item-detail.component.scss'],
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
|
||||
Reference in New Issue
Block a user