fix(benchmark): fixes ng-if ng-for renaming for templates.
This commit is contained in:
parent
0efd89ae5d
commit
38926f7123
@ -20,9 +20,9 @@ import {View} from 'angular2/src/core/annotations_impl/view';
|
|||||||
<div style="display: flex">
|
<div style="display: flex">
|
||||||
<scroll-area id="testArea"></scroll-area>
|
<scroll-area id="testArea"></scroll-area>
|
||||||
</div>
|
</div>
|
||||||
<div template="if scrollAreas.length > 0">
|
<div template="ng-if scrollAreas.length > 0">
|
||||||
<p>Following tables are only here to add weight to the UI:</p>
|
<p>Following tables are only here to add weight to the UI:</p>
|
||||||
<scroll-area template="for #scrollArea of scrollAreas"></scroll-area>
|
<scroll-area template="ng-for #scrollArea of scrollAreas"></scroll-area>
|
||||||
</div>
|
</div>
|
||||||
</div>`
|
</div>`
|
||||||
})
|
})
|
||||||
|
@ -83,7 +83,7 @@ export class Stage {
|
|||||||
directives: [NgFor],
|
directives: [NgFor],
|
||||||
template: `
|
template: `
|
||||||
<div [style]="style">
|
<div [style]="style">
|
||||||
<button template="for #stage of stages"
|
<button template="ng-for #stage of stages"
|
||||||
[disabled]="stage.isDisabled"
|
[disabled]="stage.isDisabled"
|
||||||
[style]="stage.style"
|
[style]="stage.style"
|
||||||
on-click="setStage(stage)">
|
on-click="setStage(stage)">
|
||||||
|
@ -25,7 +25,7 @@ import {NgFor} from 'angular2/directives';
|
|||||||
<div id="padding"></div>
|
<div id="padding"></div>
|
||||||
<div id="inner">
|
<div id="inner">
|
||||||
<scroll-item
|
<scroll-item
|
||||||
template="for #item of visibleItems"
|
template="ng-for #item of visibleItems"
|
||||||
[offering]="item">
|
[offering]="item">
|
||||||
</scroll-item>
|
</scroll-item>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user