1

how to access $scope variable in filter option please help me.

       $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>

1 Answer 1

3

Just use the $scope variable without any interpolation:

filter:{full_name: Profile.full_name }
Sign up to request clarification or add additional context in comments.

1 Comment

when i enter filter:{full_name:'Rischard'} ITS worKING FINE, but your answer show me all customer list,

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.