chore: rename if to ng-if
This commit is contained in:
@@ -56,15 +56,15 @@ export function main() {
|
||||
@View({
|
||||
directives: [If, For, DummyComponent, DummyDirective, DynamicDummy],
|
||||
template: `
|
||||
<div *if="testingPlainComponents">
|
||||
<div *ng-if="testingPlainComponents">
|
||||
<dummy *for="#i of list"></dummy>
|
||||
</div>
|
||||
|
||||
<div *if="testingWithDirectives">
|
||||
<div *ng-if="testingWithDirectives">
|
||||
<dummy dummy-decorator *for="#i of list"></dummy>
|
||||
</div>
|
||||
|
||||
<div *if="testingDynamicComponents">
|
||||
<div *ng-if="testingDynamicComponents">
|
||||
<dynamic-dummy *for="#i of list"></dynamic-dummy>
|
||||
</div>
|
||||
`
|
||||
|
||||
@@ -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: `
|
||||
<div>
|
||||
<div style="display: flex">
|
||||
|
||||
Reference in New Issue
Block a user