简体   繁体   中英

Cannot find module angular2/modal

我正在使用angular2版本beta15,我想使用angular2 / Modal的Modal,但是我注意到我没有需要将其用作Modal的类,ModalConfig

这个Github帖子解释了如何获取Angular 2的Modal。运行npm install angular2-modal --save您应该有一个名为angular2-modal的文件夹,可以将其导入到您的代码中,如下所示:

import {Modal, ModalConfig} from 'angular2-modal';

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM