I'm trying to pass angular variable into static method loaded in my view from my laravel controller
my view:
use \App\Http\Controllers\SomeController;
{{SomeController::check(history.referenceno)}}
my.variable is a angular variable. but it's showing me error
Use of undefined constant history
this is a table
<tr ng-repeat="history in data.bills">
<td class="ng-cloak min-w-td" style="text-align:center;"></td>
<td class="ng-cloak min-w-td" style="text-align:center;">@{{history.referenceno}}</td>
<td class="ng-cloak min-w-td" style="text-align:center;">@{{history.category}}</td>
<td class="ng-cloak min-w-td" style="text-align:center;">@{{history.productCode}}</td>
<td class="ng-cloak min-w-td" style="text-align:center;">@{{history.amount | number : 0}}</td>
<td class="ng-cloak min-w-td" style="text-align:center;">{{SomeController::verify(history.referenceno)}}</td>
<td class="ng-cloak min-w-td" style="text-align:center;">@{{history.datecreated}}</td>
</tr>
I want to access the my.variable and read it to the static function check