ここから yo meanjs ボイラープレートを使用しています: yo meanjs .
を使用して独自のモジュールを作成できることを知っています$ yo meanjs:angular-module <module-name>
。
コマンドラインから yo を使用して、コントローラーng-flowをインストールして挿入することはできますか?
何かのようなもの :$ yo meanjs:ng-flow <module-name>
ドキュメントには、ここにあると記載されていますmeanjs modules : したがって、より良い提案がない限り、このルートを試すことができます。
サードパーティ モジュールを追加するには、applicationModuleVendorDependencies という配列プロパティを追加した public/config.js ファイルを使用します。新しいサードパーティ モジュールを追加するときは、メイン モジュールが依存関係としてロードできるように、この配列に追加する必要があります。
'use strict';
// Init the application configuration module for AngularJS application
var ApplicationConfiguration = (function() {
// Init module configuration options
var applicationModuleName = 'theconnect';
var applicationModuleVendorDependencies = ['ngResource', 'ngCookies', 'ngAnimate', 'ngTouch', 'ngSanitize', 'ui.router', 'ui.bootstrap', 'ui.utils'];
// Add a new vertical module
var registerModule = function(moduleName, dependencies) {
// Create angular module
angular.module(moduleName, dependencies || []);
// Add the module to the AngularJS configuration file
angular.module(applicationModuleName).requires.push(moduleName);
};
return {
applicationModuleName: applicationModuleName,
applicationModuleVendorDependencies: applicationModuleVendorDependencies,
registerModule: registerModule
};
})();