Dart Documentationangular.directiveNgBindTemplateDirective

NgBindTemplateDirective class

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 {
 dom.Element element;

 NgBindTemplateDirective(dom.Element this.element);

 set bind(value) {
   element.text = value;
 }
}

Constructors

new NgBindTemplateDirective(Element element) #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
NgBindTemplateDirective(dom.Element this.element);

Properties

dynamic set bind(value) #

set bind(value) {
 element.text = value;
}

Element element #

dom.Element element