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">
|
||||
<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>`
|
||||
})
|
||||
|
|
|
@ -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)">
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue