chore: rename switch to ng-switch
This commit is contained in:
@ -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, Switch, SwitchWhen, SwitchDefault} from 'angular2/directives';
|
||||
import {For, NgSwitch, NgSwitchWhen, NgSwitchDefault} from 'angular2/directives';
|
||||
import {BrowserDomAdapter} from 'angular2/src/dom/browser_adapter';
|
||||
|
||||
import {ListWrapper} from 'angular2/src/facade/collection';
|
||||
@ -239,9 +239,9 @@ class AppComponent {
|
||||
}
|
||||
})
|
||||
@View({
|
||||
directives: [For, Switch, SwitchWhen, SwitchDefault],
|
||||
directives: [For, NgSwitch, NgSwitchWhen, NgSwitchDefault],
|
||||
template: `
|
||||
<table [switch]="benchmarkType">
|
||||
<table [ng-switch]="benchmarkType">
|
||||
<tbody template="switch-when 'interpolation'">
|
||||
<tr template="for #row of data">
|
||||
<td template="for #column of row">
|
||||
|
Reference in New Issue
Block a user