我正在尝试将laravel控制器中的角度变量传递给加载到视图中的静态方法
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
这是一张桌子
<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>
我要访问my.variable并将其读取到静态函数检查中