AngularJS 1.3.15
jQuery 2.1.3
'use strict'
Passing parameter to function not work.
C.change = 328;
ng-click="editMapSize( C.change )"
in page
ng-click="editMapSize( C.change )"
ng-click="editMapSize( {{ C.change }} )"
error
Syntax Error: Token '{' invalid key at column 15 of the expression [editMapSize( {{C.change}} )] starting at [{C.change}} ].
.html
<table class="table table-striped table-hover">
<tbody>
<tr>
<th ng-repeat="T in htmlTableTitle">{{ T.t }}</th>
</tr>
</tbody>
<tbody>
<tr ng-repeat="R in htmlTablePrepareData">
<td ng-repeat="C in R "
class="{{ C.class }}"
data-map-id="{{ C.change }}"
ng-click="editMapSize( {{C.change}} )">{{ C.value }}</td>
</tr>
</tbody>
</table>
How to pass variable?
2. How in this case read data attribute?
Click on $( this ) show $scope.