feat(ng-repeat): initial implementaion of ng-repeat.

- adds support for content bindings via '[]'.
- directives module
This commit is contained in:
Rado Kirov
2014-12-05 17:44:00 -08:00
parent 59d6d604b4
commit 60456c8b89
13 changed files with 388 additions and 14 deletions

View File

@ -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;
}

View File

@ -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;
}