Fix router on /
This commit is contained in:
parent
641f98b2ee
commit
70af9a0d4f
2 changed files with 5 additions and 1 deletions
|
@ -34,6 +34,10 @@ import { SearchService } from './shared'; // Temporary
|
|||
{
|
||||
path: '/videos/add',
|
||||
component: VideoAddComponent
|
||||
},
|
||||
{
|
||||
path: '/',
|
||||
component: VideoListComponent
|
||||
}
|
||||
])
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ export class SearchComponent implements OnInit {
|
|||
|
||||
this.searchCriterias.field = choice;
|
||||
|
||||
if (this.searchCriterias.value !== '') {
|
||||
if (this.searchCriterias.value) {
|
||||
this.doSearch();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue