Skip to content

Commit 3a53f9f

Browse files
feat(app): fix variable name
1 parent d9beef2 commit 3a53f9f

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/app/modules/root/shared/header/header.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<div mat-menu-item *ngFor="let lang of languages">
3333
<a
3434
class="language-link"
35-
href="{{ host }}{{
35+
href="{{ baseUrl }}{{
3636
lang.name === 'en' ? currentUrl : '/' + (lang.name + currentUrl)
3737
}}"
3838
(click)="changeLanguage(lang.name)"

src/app/modules/root/shared/header/header.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { environment } from '~environments/environment';
1313
})
1414
export class HeaderComponent implements OnInit {
1515
selectedLanguage: string;
16-
host: string;
16+
baseUrl: string;
1717
currentUrl: string;
1818
languages: any[];
1919
isLoggedIn: boolean;
@@ -25,7 +25,7 @@ export class HeaderComponent implements OnInit {
2525
private authService: AuthService,
2626
private router: Router
2727
) {
28-
this.host = environment.host;
28+
this.baseUrl = environment.baseUrl;
2929
this.selectedLanguage = '';
3030
this.currentUrl = '';
3131
this.languages = [

src/environments/environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export const environment = {
22
production: false,
3-
host: 'http://localhost:4200',
3+
baseUrl: 'http://localhost:4200',
44
graphqlHost: 'https://nestjs-example-app.herokuapp.com/',
55
// graphqlHost: 'http://localhost:3000/'
66
};

0 commit comments

Comments
 (0)