同じコードのスニペットを何度も繰り返していることに気づきました.AngularJSで次のようなことを行うことは可能ですか:
<div ng-snippet="mySnippet">
This is a snippet
</div>
<div ng-snippet="anotherSnippet">
Yet another snippet!!
</div>
<ng:include src="anotherSnippet">
<ng:include src="anotherSnippet">
<ng:include src="mySnippet">
上記の出力は次のようになります。
Yet another snippet!!
Yet another snippet!!
This is a snippet
この正確な「ng:include」ソリューションまたはパターンを必ずしも探しているわけではありませんが、テンプレートの繰り返しを減らすものを探しています。