File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 < div > interpolation + fnInvocation: < input type ="radio " ng-model ="benchmarkType " value ="interpolationFn "> </ div >
2121 < div > ngBind + filter: < input type ="radio " ng-model ="benchmarkType " value ="ngBindFilter "> </ div >
2222 < div > interpolation + filter: < input type ="radio " ng-model ="benchmarkType " value ="interpolationFilter "> </ div >
23+ < div > ngModel (const name): < input type ="radio " ng-model ="benchmarkType " value ="ngModelConstName "> </ div >
24+ < div > ngModel (interp name): < input type ="radio " ng-model ="benchmarkType " value ="ngModelInterpName "> </ div >
2325
2426 < ng-switch on ="benchmarkType ">
2527 < baseline-binding-table ng-switch-when ="baselineBinding ">
@@ -84,7 +86,21 @@ <h2>interpolation with filter</h2>
8486 < span ng-repeat ="column in row "> {{column.i | noop}}:{{column.j | noop}}|</ span >
8587 </ div >
8688 </ div >
89+ < div ng-switch-when ="ngModelConstName ">
90+ < h2 > ngModel (const name)</ h2 >
91+ < div ng-repeat ="row in data ">
92+ < input type ="text " ng-model ="row.i " name ="constName " />
93+ < input type ="text " ng-model ="row.j " />
94+ </ div >
95+ </ div >
96+ < div ng-switch-when ="ngModelInterpName ">
97+ < h2 > ngModel (interp name)</ h2 >
98+ < div ng-repeat ="(rowIdx, row) in data ">
99+ < input type ="text " ng-model ="row.i " name ="input-{{rowIdx}} " />
100+ < input type ="text " ng-model ="row.j " name ="input2-{{rowIdx}} " />
101+ </ div >
102+ </ div >
87103 </ ng-switch >
88104 </ div >
89105 </ div >
90- </ div >
106+ </ div >
You can’t perform that action at this time.
0 commit comments