次のようなプロジェクト構造が必要です。
assets/javascripts/
- featureA/
- templateA.html
- controllerA.js
- featureB/
- templateB.html
- controllerB.js
ただし、Angular テンプレート アセット パイプライン プラグインは、テンプレートの構成で 1 つのディレクトリ/フォルダーのみを受け入れます。
grails {
assets {
angular {
templateFolder = 'templates'
moduleNameBase = 'app'
compressHtml = true
preserveHtmlComments = false
includePathInName = false
}
}
}
プラグインが特定のテンプレート フォルダーの下にあるネストされたフォルダーをスキャンできる方法はありますか?