‘!’ character prepend to the filter string, like below:
filter:’!’+languageOrigin
<select ng-model="languageOrigin" ng-change="updatePrice()">
<option ng-repeat="language in languages">{{language}}</option>
</select>
<select ng-model="languageDestination" ng-change="updatePrice()">
<option ng-repeat="language in languages | filter:'!'+languageOrigin">{{language}}</option>
</select>
Related Contents:
- AngularJS : Prevent error $digest already in progress when calling $scope.$apply()
- How do I access the $scope variable in browser’s console using AngularJS?
- How to add custom validation to an AngularJS form?
- AngularJS For Loop with Numbers & Ranges
- Why are AngularJS $http success/error methods deprecated? Removed from v1.6?
- How do you prevent duplicate user properties in Firebase?
- Show spinner GIF during an $http request in AngularJS?
- How to format date in angularjs
- Difference between double and single curly brace in angular JS?
- Unit Testing AngularJS directive with templateUrl
- Is there a way to make AngularJS load partials in the beginning and not at when needed?
- Sending event when AngularJS finished loading
- Submit form on pressing Enter with AngularJS
- How to preventDefault on anchor tags?
- AngularJS – convert dates in controller
- How come Angular doesn’t update with scope here?
- Angularjs: input[text] ngChange fires while the value is changing
- Preserve line breaks in angularjs
- What is the Angular ui-router lifecycle? (for debugging silent errors)
- Rendering directives within $sce.trustAsHtml
- What “things” can be injected into others in Angular.js?
- AngularJS resource promise
- AngularJS – Access to child scope
- Remove Blank option from Select Option with AngularJS
- Set Page title using UI-Router
- AngularJS – Passing data between pages
- AngularJS UI Router – change url without reloading state
- angular.js link behaviour – disable deep linking for specific URLs
- Cordova + Angularjs + Device Ready
- Cannot get to $rootScope
- What advantage is there in using the $timeout in AngularJS instead of window.setTimeout?
- Angular directive how to add an attribute to the element?
- How to write a debounce service in AngularJS
- AngularJS error .success is not a function
- Angular UI Router Nested State resolve in child states
- Best way to represent a Grid or Table in AngularJS with Bootstrap 3? [closed]
- How can you limit the value from input using AngularJS?
- Why is using if(!$scope.$$phase) $scope.$apply() an anti-pattern?
- Scope issue in AngularJS using AngularUI Bootstrap Modal
- AngularJS not detecting Access-Control-Allow-Origin header?
- AngularJS ng-options create range
- AngularAMD + ui-router + dynamic controller name?
- AngularJS : ng-repeat filter when value is greater than
- AngularJS Group By Directive without External Dependencies
- Cordova / Ionic : $http request not processing while emulating or running on device
- AngularJS: ngRoute Not Working
- How do I store a current user context in AngularJS?
- Filter results 6 through 10 of 100 with ng-repeat in AngularJS
- Angularjs autocomplete from $http
- Angular directive for a fallback image