我具有以下父子路由结构,它们使用路由解析器共享电影数据。子组件具有形式,对它们的任何更改都将触发子组件内的验证,但是父容器不知道该验证。如何在父容器级别验证数据?
{
path: 'movies/:id/edit',
component: movies,
resolve: {
movie: MovieResolver
},
children: [
{
path: '',
redirectTo: 'crew',
pathMatch: 'full'
},
{
path: 'crew',
component: MovieCrewInfoComponent
},
{
path: 'cast',
component: MovieCastInfoComponent
}
]
}