실제로 링크 기능을 사용하지 않고 요소의 텍스트에 바인딩 할 수 있습니까?요소 텍스트를 각도로 바인딩
<blink>Text Here or {{ controllerText() }}</blink>
// add a namespace for custom directives
angular.module('mydirectives', []);
angular.module('mydirectives').directive('blink', function() {
return {
restrict: 'E',
template: '<marquee scrollamount="100%">{{ can i do it here? }} </marquee>',
scope: {
// can i do it here?
}
};
});
transclusion을 의미합니까? –
명백하게 나는했다! –