LoginSignup
1

More than 5 years have passed since last update.

MEAN.JSに依存モジュールを追加する場所

Posted at

MEAN.JSベースで作るアプリケーションに対して新たに依存モジュールを追加するときの記述場所のメモ。

例えば、MEAN.JSベースのアプリケーションに対してangular-native-pickerを追加しようとします。

まずは、bowerでインストールします。

shell-command
% bower install --save angular-native-picker

次にconfig/env/all.jsのassetsプロパティのjsの中にこの1行を追加します。

'public/lib/angular-native-picker/build/angular-datepicker.js'

最後に、public/config.jsのapplicationModuleVendorDependencies配列に、'angular-datepicker'を追加します。

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
1