核心提示:第一步进行安装Bootstrap的方式npm install -p bootstrap第二部进行更改angular-cli.json文件中,增加如图内容:styles: [styles.css,../...
       第一步
进行安装Bootstrap的方式
npm install -p bootstrap
第二部
进行更改angular-cli.json文件中,增加如图内容:

"styles": [
        "styles.css",
        "../node_modules/bootstrap/dist/css/bootstrap.min.css"
      ],
      "scripts": [
        "../node_modules/bootstrap/dist/js/bootstrap.js"
      ],
引用的资源




 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                