JSFiddle - React, Tailwind, and code Playground
HTML
<div ng-controller="myAppCtrl">
{{willMatch | exactString:'shipped'}}
{{willNotMatch |exactString:'shipped'}}
</div>
JavaScript
angular.module('myApp', []).filter('exactString', function () {
return function (string, term) {
return ('' + string).indexOf(term) > -1;
}
}).controller("myAppCtrl", function ($scope) {
$scope.willMatch = "shipped";
$scope.willNotMatch = "Partially Shipped";
});