我应该在哪里使用 ngBoilerplate 放置特定于应用程序的指令?

Where should I place application specific directives with ngBoilerplate?

对于 ngBoilerplate,我应该放在哪里以及我应该如何构建我的应用程序范围的过滤器、服务和指令?

src/app

app目录好像是围绕着路由排列的

Apart from app.js and its accompanying tests (discussed below), this directory is filled with subdirectories corresponding to high-level sections of the application, often corresponding to top-level routes.

事实并非如此,这些不对应于应用程序的高级部分,更不用说路由了。


src/common

但是还有一个 common 目录。 README.md 状态:

The src/common/ directory houses internal and third-party re-usable components. Essentially, this folder is for everything that isn't completely specific to this application.

Every component contained here should be drag-and-drop reusable in any other project; they should depend on no other components that aren't similarly drag-and-drop reusable.

这似乎不适用于我的情况,因为这些项目 特定于此应用程序并且在其他应用程序中不起作用。

(编辑以解决 src/common 文件夹)

如果它的应用范围很广,您可以将过滤器、服务和指令放在公共文件夹中。