aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/angular/app
diff options
context:
space:
mode:
Diffstat (limited to 'client/angular/app')
-rw-r--r--client/angular/app/app.component.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/client/angular/app/app.component.ts b/client/angular/app/app.component.ts
index 3a6df844a..722d0dca0 100644
--- a/client/angular/app/app.component.ts
+++ b/client/angular/app/app.component.ts
@@ -53,6 +53,7 @@ export class AppComponent {
53 constructor(private _friendsService: FriendsService, 53 constructor(private _friendsService: FriendsService,
54 private _authService: AuthService, 54 private _authService: AuthService,
55 private _router: Router 55 private _router: Router
56
56 ) { 57 ) {
57 this.isLoggedIn = this._authService.isLoggedIn(); 58 this.isLoggedIn = this._authService.isLoggedIn();
58 59
@@ -67,7 +68,11 @@ export class AppComponent {
67 68
68 onSearch(search: Search) { 69 onSearch(search: Search) {
69 if (search.value !== '') { 70 if (search.value !== '') {
70 this._router.navigate(['VideosList', { search: search.value, field: search.field }]); 71 const params = {
72 search: search.value,
73 field: search.field
74 };
75 this._router.navigate(['VideosList', params]);
71 } else { 76 } else {
72 this._router.navigate(['VideosList']); 77 this._router.navigate(['VideosList']);
73 } 78 }