feat(ng-repeat): initial implementaion of ng-repeat.
- adds support for content bindings via '[]'. - directives module
This commit is contained in:
@ -53,6 +53,9 @@ class DOM {
|
||||
static insertAfter(el, node) {
|
||||
el.parentNode.insertBefore(node, el.nextNode);
|
||||
}
|
||||
static getText(Element el) {
|
||||
return el.text;
|
||||
}
|
||||
static setText(Text text, String value) {
|
||||
text.text = value;
|
||||
}
|
||||
|
@ -49,6 +49,9 @@ export class DOM {
|
||||
static setInnerHTML(el, value) {
|
||||
el.innerHTML = value;
|
||||
}
|
||||
static getText(el: Element) {
|
||||
return el.textContent;
|
||||
}
|
||||
static setText(text:Text, value:string) {
|
||||
text.nodeValue = value;
|
||||
}
|
||||
|
Reference in New Issue
Block a user