I'm using the translate directive on a tag that also has another transclude directive:
<div translate demo>Some text</div>
demo = (function() {
function demo() {
return {
transclude: true,
template: "<p>Bla, bla <span ng-transclude></span></p>"
};
}
return demo;
})();
(JavaScript was automatically generated from CoffeeScript with ng-classify:
class demo extends Directive
constructor: ->
return {
transclude: true
template: """
<p>Bla, bla <span ng-transclude></span></p>
"""
}
)
Setting demo directive's priority to -1000 translates Some text but replaced the demo's template entirely.
Is this supposed to work somehow? or I must to put translate on another inner tag:
<div demo><span translate >Some text</span></div>
I'm using the
translatedirective on a tag that also has another transclude directive:(JavaScript was automatically generated from CoffeeScript with ng-classify:
)
Setting
demodirective's priority to -1000 translatesSome textbut replaced the demo's template entirely.Is this supposed to work somehow? or I must to put
translateon another inner tag: