如何在过滤器选项中访问$ scope变量请帮帮我。
$scope.Profile = Auth.getCurrentUserSync();
HTML
<select class="form-control" name="customer" id="customer" ng-model="postjobcustomerCtrl.selectedCustomer" ng-options="customer.full_name for customer in postjobcustomerCtrl.atlasCustomers | filter:{full_name:"+Profile.full_name+"} track by customer.user_id"
ng-change="postjobcustomerCtrl.selectDefaultAddress()" required></select>
答案 0 :(得分:2)
只需使用$scope
变量而不进行任何插值:
filter:{full_name: Profile.full_name }