Angular ModalView Nativescript结果
我构建了一个页面,当我单击打开一个包含人员列表的ModalView时,当我选择一个人时,它将返回为选中状态 错误: 如果我再次单击以打开人员列表模式,它将不起作用-列表不会加载 在日志上:第一次传入构造函数ngOnInit。。。。 第二次只传递到构造函数,而不是更多关于ngOninit的内容。。为什么?解决了Angular ModalView Nativescript结果,angular,react-native,nativescript,Angular,React Native,Nativescript,我构建了一个页面,当我单击打开一个包含人员列表的ModalView时,当我选择一个人时,它将返回为选中状态 错误: 如果我再次单击以打开人员列表模式,它将不起作用-列表不会加载 在日志上:第一次传入构造函数ngOnInit。。。。 第二次只传递到构造函数,而不是更多关于ngOninit的内容。。为什么?解决了 我创建了一个新的服务来调用viewContainerRef modalCrongorama() { let options = { context: {},
我创建了一个新的服务来调用viewContainerRef
modalCrongorama() {
let options = {
context: {},
fullscreen: true,
viewContainerRef: this.viewRef
};
this.modalService.showModal(CronogramaManejoComponent, options)
.then((result: CronogramaManejo)=>{
this.idCrongrama = result.id;
this.nomeCronograma = result.manejos;
console.log(this.idCrongrama);
console.log(this.nomeCronograma);
this.addInsumo(result.id, result.manejos);
});
}
如何关闭模式post选择?你能重现游乐场的问题吗?整理好了!!!我创建了一个新服务来调用viewContainerRef。modalCrongorama(){const options:ModalDialogOptions={viewContainerRef:this.uiService.getRootVCRef()?this.uiService.getRootVCRef():this.vcRef,上下文:{},全屏:true};
modalCrongorama() {
const options: ModalDialogOptions = {
viewContainerRef: this.uiService.getRootVCRef()
? this.uiService.getRootVCRef()
: this.vcRef,
context: {},
fullscreen: true
};