';
tb.createView(TestComponent, {html: html}).then((view) => {
@@ -132,7 +132,7 @@ export function main() {
if (!IS_DARTIUM) {
it('should not add the element twice if the condition goes from true to true (JS)',
inject([TestBed, AsyncTestCompleter], (tb, async) => {
- var html = '
hello
';
+ var html = '
hello
';
tb.createView(TestComponent, {html: html}).then((view) => {
view.detectChanges();
@@ -150,7 +150,7 @@ export function main() {
it('should not recreate the element if the condition goes from true to true (JS)',
inject([TestBed, AsyncTestCompleter], (tb, async) => {
- var html = '
hello
';
+ var html = '
hello
';
tb.createView(TestComponent, {html: html}).then((view) => {
view.detectChanges();
@@ -168,7 +168,7 @@ export function main() {
if (IS_DARTIUM) {
it('should not create the element if the condition is not a boolean (DART)',
inject([TestBed, AsyncTestCompleter], (tb, async) => {
- var html = '
hello
';
+ var html = '
hello
';
tb.createView(TestComponent, {html: html}).then((view) => {
expect(() => view.detectChanges()).toThrowError();
@@ -183,7 +183,7 @@ export function main() {
}
@Component({selector: 'test-cmp'})
-@View({directives: [If]})
+@View({directives: [NgIf]})
class TestComponent {
booleanCondition: boolean;
nestedBooleanCondition: boolean;
diff --git a/modules/angular2/test/render/dom/compiler/view_splitter_spec.js b/modules/angular2/test/render/dom/compiler/view_splitter_spec.js
index 155a3c0aae..aae9c44b51 100644
--- a/modules/angular2/test/render/dom/compiler/view_splitter_spec.js
+++ b/modules/angular2/test/render/dom/compiler/view_splitter_spec.js
@@ -144,12 +144,12 @@ export function main() {
describe('elements with *directive_name attribute', () => {
it('should replace the element with an empty element', () => {
- var rootElement = el('
');
+ var rootElement = el('
');
var originalChild = rootElement.childNodes[0];
var results = createPipeline().process(rootElement);
expect(results[0].element).toBe(rootElement);
- expect(DOM.getOuterHTML(results[0].element)).toEqual('');
- expect(DOM.getOuterHTML(results[2].element)).toEqual('')
+ expect(DOM.getOuterHTML(results[0].element)).toEqual('');
+ expect(DOM.getOuterHTML(results[2].element)).toEqual('')
expect(results[2].element).toBe(originalChild);
});
diff --git a/modules/benchmarks/src/costs/index.js b/modules/benchmarks/src/costs/index.js
index b8526692df..3b9c660ee2 100644
--- a/modules/benchmarks/src/costs/index.js
+++ b/modules/benchmarks/src/costs/index.js
@@ -56,15 +56,15 @@ export function main() {
@View({
directives: [If, For, DummyComponent, DummyDirective, DynamicDummy],
template: `
-
+
-
+
-
+
`
diff --git a/modules/benchmarks/src/naive_infinite_scroll/app.js b/modules/benchmarks/src/naive_infinite_scroll/app.js
index 94c66359e0..46b13f2fd6 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 {If, For} from 'angular2/directives';
+import {NgIf, For} 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, If, For],
+ directives: [ScrollAreaComponent, NgIf, For],
template: `