Fix router on /

This commit is contained in:
Chocobozzz 2016-06-10 22:08:39 +02:00
parent 641f98b2ee
commit 70af9a0d4f
2 changed files with 5 additions and 1 deletions

View File

@ -34,6 +34,10 @@ import { SearchService } from './shared'; // Temporary
{
path: '/videos/add',
component: VideoAddComponent
},
{
path: '/',
component: VideoListComponent
}
])

View File

@ -52,7 +52,7 @@ export class SearchComponent implements OnInit {
this.searchCriterias.field = choice;
if (this.searchCriterias.value !== '') {
if (this.searchCriterias.value) {
this.doSearch();
}
}