【发布时间】:2017-04-20 02:00:57
【问题描述】:
我正在尝试根据本文中提供的实现将模式集成到我的页面 How to pass data to bootstrap modal dialog in Angular2 这里提供了工作 plunker 解决方案http://plnkr.co/edit/8wBnEHOS5zNGXNhg9Tzy?p=preview
我在 AngularJs (As Angular2) 中创建了一个新的 plunkr 选项不存在。但是,将 AppComponent/ModalComponent 添加到我的 app.ts 文件时,我看到了一个错误
description"XHR error (404 Not Found) loading http://run.plnkr.co/qf9bnaF8YtMFzfz9/app/app.component"
这是我的 plunker 代码链接 - http://plnkr.co/edit/pRTaxiaU2S9dtiLYPEtl。有人可以帮我这里出了什么问题吗?谢谢!!!
【问题讨论】:
-
请发布您的代码。
-
我怀疑你的组件可能没有加载到 app.module.ts 中
标签: angular modal-dialog popupwindow angular2-directives