DirectiveRef class
class DirectiveRef {
final dom.Node element;
final Type type;
final NgAnnotation annotation;
final String value;
final List<ApplyMapping> mappings = new List<ApplyMapping>();
BlockFactory blockFactory;
DirectiveRef(dom.Node this.element, Type this.type, NgAnnotation this.annotation,
[ String this.value ]);
String toString() {
var html = element is dom.Element ? (element as dom.Element).outerHtml : element.nodeValue;
return '{ element: $html, selector: ${annotation.selector}, value: $value }';
}
}
Constructors
new DirectiveRef(Node element, Type type, NgAnnotation annotation, [String value]) #
Properties
final NgAnnotation annotation #
final NgAnnotation annotation
BlockFactory blockFactory #
BlockFactory blockFactory
final Node element #
final dom.Node element
final List<ApplyMapping> mappings #
final List<ApplyMapping> mappings = new List<ApplyMapping>()
final Type type #
final Type type
final String value #
final String value
Methods
String toString() #
Returns a string representation of this object.
docs inherited from Object
String toString() {
var html = element is dom.Element ? (element as dom.Element).outerHtml : element.nodeValue;
return '{ element: $html, selector: ${annotation.selector}, value: $value }';
}