Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在angular 2/4项目中使用@types/bootstrap使用引导_Angular_Webpack_Angular Cli - Fatal编程技术网

在angular 2/4项目中使用@types/bootstrap使用引导

在angular 2/4项目中使用@types/bootstrap使用引导,angular,webpack,angular-cli,Angular,Webpack,Angular Cli,如何在angular项目中使用angular CLI将引导与@types/bootstrap结合使用 npm安装jquery引导程序bootbox@types/bootstrap@types/jquery@types/bootbox 从“jquery”导入*为$ 从“引导”导入*作为引导 从“引导盒”导入*作为引导盒 当我尝试使用以下语句打开bootbox.alert时 警告(“消息”)它给出了一个错误 未定义$.fn.modal 使用ngbootstrap npm install --save

如何在angular项目中使用angular CLI将引导与@types/bootstrap结合使用

  • npm安装jquery引导程序bootbox@types/bootstrap@types/jquery@types/bootbox

    从“jquery”导入*为$

    从“引导”导入*作为引导

    从“引导盒”导入*作为引导盒

  • 当我尝试使用以下语句打开bootbox.alert时 警告(“消息”)它给出了一个错误

    未定义$.fn.modal

  • 使用ngbootstrap

    npm install --save @ng-bootstrap/ng-bootstrap
    
    import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
    
    使用ngbootstrap

    npm install --save @ng-bootstrap/ng-bootstrap
    
    import {NgbModule} from '@ng-bootstrap/ng-bootstrap';