' +
+ '
' +
+ '' +
'{{subitem}}-{{item.length}};' +
'
';
@@ -207,7 +207,7 @@ export function main() {
it('should display indices correctly',
inject([TestBed, AsyncTestCompleter], (tb, async) => {
var template =
- '
{{i.toString()}}
';
+ '
{{i.toString()}}
';
tb.createView(TestComponent, {html: template}).then((view) => {
view.context.items = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
@@ -231,7 +231,7 @@ class Foo {
}
@Component({selector: 'test-cmp'})
-@View({directives: [For]})
+@View({directives: [NgFor]})
class TestComponent {
items: any;
constructor() {
diff --git a/modules/angular2/test/directives/switch_spec.js b/modules/angular2/test/directives/ng_switch_spec.js
similarity index 100%
rename from modules/angular2/test/directives/switch_spec.js
rename to modules/angular2/test/directives/ng_switch_spec.js
diff --git a/modules/benchmarks/src/costs/index.js b/modules/benchmarks/src/costs/index.js
index 3b9c660ee2..9a45dc9d47 100644
--- a/modules/benchmarks/src/costs/index.js
+++ b/modules/benchmarks/src/costs/index.js
@@ -8,7 +8,7 @@ import {List, ListWrapper} from 'angular2/src/facade/collection';
import {reflector} from 'angular2/src/reflection/reflection';
import {ReflectionCapabilities} from 'angular2/src/reflection/reflection_capabilities';
import {getIntParameter, bindAction} from 'angular2/src/test_lib/benchmark_util';
-import {If, For} from 'angular2/directives';
+import {If, NgFor} from 'angular2/directives';
// TODO(radokirov): Once the application is transpiled by TS instead of Traceur,
// add those imports back into 'angular2/angular2';
@@ -54,18 +54,18 @@ export function main() {
@Component({selector: 'app'})
@View({
- directives: [If, For, DummyComponent, DummyDirective, DynamicDummy],
+ directives: [If, NgFor, DummyComponent, DummyDirective, DynamicDummy],
template: `
-
+
-
+
-
+
`
})
diff --git a/modules/benchmarks/src/largetable/largetable_benchmark.js b/modules/benchmarks/src/largetable/largetable_benchmark.js
index c6abdee920..2bc96b5f2d 100644
--- a/modules/benchmarks/src/largetable/largetable_benchmark.js
+++ b/modules/benchmarks/src/largetable/largetable_benchmark.js
@@ -13,7 +13,7 @@ import {DOM} from 'angular2/src/dom/dom_adapter';
import {window, document, gc} from 'angular2/src/facade/browser';
import {getIntParameter, getStringParameter, bindAction} from 'angular2/src/test_lib/benchmark_util';
-import {For, NgSwitch, NgSwitchWhen, NgSwitchDefault} from 'angular2/directives';
+import {NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault} from 'angular2/directives';
import {BrowserDomAdapter} from 'angular2/src/dom/browser_adapter';
import {ListWrapper} from 'angular2/src/facade/collection';
@@ -239,7 +239,7 @@ class AppComponent {
}
})
@View({
- directives: [For, NgSwitch, NgSwitchWhen, NgSwitchDefault],
+ directives: [NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault],
template: `
diff --git a/modules/benchmarks/src/naive_infinite_scroll/app.js b/modules/benchmarks/src/naive_infinite_scroll/app.js
index 46b13f2fd6..5f70d17afa 100644
--- a/modules/benchmarks/src/naive_infinite_scroll/app.js
+++ b/modules/benchmarks/src/naive_infinite_scroll/app.js
@@ -3,7 +3,7 @@ import {getIntParameter, bindAction} from 'angular2/src/test_lib/benchmark_util'
import {PromiseWrapper} from 'angular2/src/facade/async';
import {ListWrapper} from 'angular2/src/facade/collection';
import {ScrollAreaComponent} from './scroll_area';
-import {NgIf, For} from 'angular2/directives';
+import {NgIf, NgFor} from 'angular2/directives';
import {DOM} from 'angular2/src/dom/dom_adapter';
import {document} from 'angular2/src/facade/browser';
@@ -14,7 +14,7 @@ import {View} from 'angular2/src/core/annotations_impl/view';
@Component({selector: 'scroll-app'})
@View({
- directives: [ScrollAreaComponent, NgIf, For],
+ directives: [ScrollAreaComponent, NgIf, NgFor],
template: `
diff --git a/modules/benchmarks/src/naive_infinite_scroll/cells.js b/modules/benchmarks/src/naive_infinite_scroll/cells.js
index 7eff183cef..17ba892b49 100644
--- a/modules/benchmarks/src/naive_infinite_scroll/cells.js
+++ b/modules/benchmarks/src/naive_infinite_scroll/cells.js
@@ -1,7 +1,7 @@
import {ListWrapper, MapWrapper} from 'angular2/src/facade/collection';
import {Company, Opportunity, Offering, Account, CustomDate, STATUS_LIST}
from './common';
-import {For} from 'angular2/directives';
+import {NgFor} from 'angular2/directives';
// TODO(radokirov): Once the application is transpiled by TS instead of Traceur,
// add those imports back into 'angular2/angular2';
@@ -80,7 +80,7 @@ export class Stage {
}
})
@View({
- directives: [For],
+ directives: [NgFor],
template: `