1
如何在過濾器選項中訪問$ 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>
當我進入過濾器:{FULL_NAME: 'Rischard'}它的工作很好,但你的回答能夠體現出我所有的客戶名單, –
對不起,我的錯誤,它的工作很好,謝謝 –