Я не уверен, что его можно достичь, чего я хочу. Я попытаюсь объяснить это на примере:Конкатентный шаблон с пользовательским шаблоном директивы
пользовательские директивы:
appDirectives.directive("myTestDirective",
function() {
return {
restrict: "E",
templateUrl: "<div> Some template here... {{ testObject }} <div>",
scope: {
'testObject' = '@testObject'
}
};
}]);
Использование директивы в tempalte:
<my-test-directive testObject="And some more here...">
<div>
I also want to be in the template!
</di>
</my-test-directive>
И я хочу, чтобы достичь этого шаблона:
<div> Some template here... And some more here... <div>
<div>
I also want to be in the template!
</di>
О, спасибо. Я знал о transclude, но кажется, что я не знал, где разместить ng-transclude :) –