[英]How to add custom dialog using angular2-mdl?
I am new to angular2 and im using angular2-mdl for my project. 我是angular2和im的新手,我在我的项目中使用angular2-mdl。 i tried to implement custom dialog given in the http://mseemann.io/angular2-mdl/dialogs but i am not to get it work. 我试图实现http://mseemann.io/angular2-mdl/dialogs中给出的自定义对话框,但我无法使其正常工作。 I am getting errors 我遇到错误
Cannot find name 'MdlDialogReference'. 找不到名称“ MdlDialogReference”。 Property 'dialogService' does not exist on type 'AppComponent' 类型“ AppComponent”上不存在属性“ dialogService”
You can find a simple working example here: http://plnkr.co/edit/HgAvCnzkWAmK1NVxfEUM?p=preview 您可以在此处找到一个简单的工作示例: http : //plnkr.co/edit/HgAvCnzkWAmK1NVxfEUM?p=preview
It's probably the missing dialogService
property in you 'AppComponent': 您的“ AppComponent”中可能缺少缺少的dialogService
属性:
constructor(private dialogService: MdlDialogService){
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.