LoginSignup
0
0

More than 1 year has passed since last update.

【Angular】AngularでBootstrapを使う際の初期設定方法

Posted at

1. インストール

Boostrapをnpmでインストールします。本記事ではバージョン4.5.0を指定しています。

$ npm install bootstrap@4.5.0

2. ファイル設定

プロジェクト直下のangular.jsonファイルを編集し、以下を追加して完了です。

angular.json
// 元からある"src/styles.css"より前に追加する
"styles": [
     "./node_modules/bootstrap/dist/css/bootstrap.min.css",  // 追加
     "src/styles.css"
                        ],
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0