详解angular2封装material2对话框组件(2)

constructor(dialog : CustomDialogService){} this.dialog.alert('你好'); this.dialog.alert('你好','标题'); this.dialog.alert({ content : '你好', title : '标题', button : 'ok' }); this.dialog.confirm('确认吗').subscribe(res => { res === 'ok' && dosomething });

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wwzwdx.html