This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 20
20
< div > interpolation + fnInvocation: < input type ="radio " ng-model ="benchmarkType " value ="interpolationFn "> </ div >
21
21
< div > ngBind + filter: < input type ="radio " ng-model ="benchmarkType " value ="ngBindFilter "> </ div >
22
22
< 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 >
23
25
24
26
< ng-switch on ="benchmarkType ">
25
27
< baseline-binding-table ng-switch-when ="baselineBinding ">
@@ -84,7 +86,21 @@ <h2>interpolation with filter</h2>
84
86
< span ng-repeat ="column in row "> {{column.i | noop}}:{{column.j | noop}}|</ span >
85
87
</ div >
86
88
</ 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 >
87
103
</ ng-switch >
88
104
</ div >
89
105
</ div >
90
- </ div >
106
+ </ div >
You can’t perform that action at this time.
0 commit comments