fix(benchmark): fixes ng-if ng-for renaming for templates.

This commit is contained in:
Rado Kirov 2015-05-12 18:31:38 -07:00 committed by Victor Berchet
parent 0efd89ae5d
commit 38926f7123
3 changed files with 4 additions and 4 deletions

View File

@ -20,9 +20,9 @@ import {View} from 'angular2/src/core/annotations_impl/view';
<div style="display: flex">
<scroll-area id="testArea"></scroll-area>
</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>
<scroll-area template="for #scrollArea of scrollAreas"></scroll-area>
<scroll-area template="ng-for #scrollArea of scrollAreas"></scroll-area>
</div>
</div>`
})

View File

@ -83,7 +83,7 @@ export class Stage {
directives: [NgFor],
template: `
<div [style]="style">
<button template="for #stage of stages"
<button template="ng-for #stage of stages"
[disabled]="stage.isDisabled"
[style]="stage.style"
on-click="setStage(stage)">

View File

@ -25,7 +25,7 @@ import {NgFor} from 'angular2/directives';
<div id="padding"></div>
<div id="inner">
<scroll-item
template="for #item of visibleItems"
template="ng-for #item of visibleItems"
[offering]="item">
</scroll-item>
</div>