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