Hier mein html table.i bereits die Tabelle mit Winkel js bindenin einer HTML-Tabelle suchen, verwendet die Winkel js
<body ng-app>
<div class="wrapper wrapper-content" ng-controller="InboxMailCtrl">
<div class="input-group-btn">
<button type="submit" ng-model="search" class="btn btn-sm btn-primary">
Search
</button>
</div>
<table class="table table-hover table-mail">
<tbody>
<tr ng-repeat="CU in InboxList">
<td class="mail-ontact"><a href="" ng-click="ViewEmailDetails(CU.InboxMailID)">{{CU.Reciever}}</a></td>
<td class="mail-subject"><a href="" ng-click="ViewEmailDetails(CU.InboxMailID)">{{CU.Subject}}</a></td>
</tr>
</tbody>
</table>
</div>
hier ist meine AngularJS code.i wollen Suchfunktion hinzufügen
var InboxDraftMailCtrl = function ($scope, $http) {
BindDraftMailList();
function BindDraftMailList(Data) {
debugger
var UserEmail = sessionStorage.getItem("loginUserID");
var obj = {
data: UserEmail
}
debugger
$http({
url: "MailRoute/getDataForDraftMail",
dataType: 'json',
method: 'POST',
data: obj,
headers: {
"Content-Type": "application/json"
}
}).success(function (response) {
})
.error(function (error) {
alert(error);
});
}
, was ich hinzufügen, die Suchfunktion
Offensichtlich nicht eine einfache Web-Suche nach einfachen Begriffen wie "eckige Suche" oder hätte gefunden ** [filter docs] (https://docs.angularjs.org/api/ng/filter/filter) ** und viele andere Ergebnisse – charlietfl