blob: 97c8715edbd037572c6fc417055a73916091601d [file] [log] [blame]
part of angular.directive;
/**
* The [NgBindTemplateDirective] specifies that the element text content should
* be replaced with the interpolation of the template in the ngBindTemplate
* attribute. Unlike ngBind, the ngBindTemplate can contain multiple {{ }}
* expressions.
*/
@NgDirective(
selector: '[ng-bind-template]',
map: const {'ng-bind-template': '@bind'})
class NgBindTemplateDirective {
final dom.Element element;
NgBindTemplateDirective(this.element);
set bind(value) {
element.text = value;
}
}