From cdbb2473bb873b279b21314ee5c7230cb17fcf22 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Wed, 13 May 2015 10:18:31 +0200 Subject: [PATCH] fix(benchmark): change If for NgIf --- modules/benchmarks/src/costs/index.js | 4 ++-- modules/benchmarks/src/tree/tree_benchmark.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/benchmarks/src/costs/index.js b/modules/benchmarks/src/costs/index.js index 9a45dc9d47..ee2eb5fc05 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, NgFor} from 'angular2/directives'; +import {NgIf, NgFor} from 'angular2/directives'; // TODO(radokirov): Once the application is transpiled by TS instead of Traceur, // add those imports back into 'angular2/angular2'; @@ -54,7 +54,7 @@ export function main() { @Component({selector: 'app'}) @View({ - directives: [If, NgFor, DummyComponent, DummyDirective, DynamicDummy], + directives: [NgIf, NgFor, DummyComponent, DummyDirective, DynamicDummy], template: `
diff --git a/modules/benchmarks/src/tree/tree_benchmark.js b/modules/benchmarks/src/tree/tree_benchmark.js index c81d14c71f..c203711b63 100644 --- a/modules/benchmarks/src/tree/tree_benchmark.js +++ b/modules/benchmarks/src/tree/tree_benchmark.js @@ -13,7 +13,7 @@ import {isPresent} from 'angular2/src/facade/lang'; import {List} from 'angular2/src/facade/collection'; import {window, document, gc} from 'angular2/src/facade/browser'; import {getIntParameter, getStringParameter, bindAction} from 'angular2/src/test_lib/benchmark_util'; -import {If} from 'angular2/directives'; +import {NgIf} from 'angular2/directives'; import {BrowserDomAdapter} from 'angular2/src/dom/browser_adapter'; import {APP_VIEW_POOL_CAPACITY} from 'angular2/src/core/compiler/view_pool'; import {bind} from 'angular2/di'; @@ -245,8 +245,8 @@ class AppComponent { properties: {'data': 'data'} }) @View({ - directives: [TreeComponent, If], - template: ` {{data.value}} ` + directives: [TreeComponent, NgIf], + template: ` {{data.value}} ` }) class TreeComponent { data:TreeNode;