Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Side by Side Diff: third_party/pkg/angular/lib/core_dom/common.dart

Issue 124053002: Adding Angular and dependent packages for testing (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 part of angular.core.dom;
2
3 List<dom.Node> cloneElements(elements) {
4 var clones = [];
5 for(var i = 0, ii = elements.length; i < ii; i++) {
6 clones.add(elements[i].clone(true));
7 }
8 return clones;
9 }
10
11 typedef ApplyMapping(NodeAttrs attrs, Scope scope, Object dst);
12
13 class DirectiveRef {
14 final dom.Node element;
15 final Type type;
16 final NgAnnotation annotation;
17 final String value;
18 final List<ApplyMapping> mappings = new List<ApplyMapping>();
19
20 BlockFactory blockFactory;
21
22 DirectiveRef(this.element, this.type, this.annotation, [ this.value ]);
23
24 String toString() {
25 var html = element is dom.Element ? (element as dom.Element).outerHtml : ele ment.nodeValue;
26 return '{ element: $html, selector: ${annotation.selector}, value: $value }' ;
27 }
28 }
29
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698