0
我想設置一個全屏視頻背景,我只想在應用「主頁」上顯示,但沒有成功。在應用上呈現的第一個組件是HomeComponent。在特定組件/路徑上添加視頻背景
應用路由-module.ts(僅路徑顯示)
const routes: Routes = [
{ path: '', redirectTo: '/accueil', pathMatch: 'full'},
{ path: 'accueil', component: HomeComponent },
{ path: 'ligne/:lineId', component: LineComponent },
{ path: 'ligne/:lineId/station/:stationName', component: StationComponent }
];
我希望做的是有聲視頻的背景,只有當我在/ ACCUEIL但不是在其他路徑/組件。有沒有辦法做到這一點?
在此先感謝。
嗨,謝謝你的回覆。我會嘗試這種解決方案時,我可以告訴你,如果我設法做我想做的:) – nvkfr
好吧,它的工作,謝謝! – nvkfr