0
는 필터링 데이터
HTML
<input type="text" ng-model="searchvalue">
<span ng-click="searchbtn()">Search</span>
JS를 완료
$scope.searchbtn = function() {
$scope.loading = true;
$scope.mysearchvalue = $scope.searchvalue;
}
사용자가 내 데이터를 필터링하고 내가해야 할 키워드 입력 데이터를 필터링 한 후 콜백 함수. 내가 "DOMSubtreeModified"를 사용하고 있지만 복귀 시도
는
var myElement = angular.element(document.getElementById("mycontent"));
myElement.bind("DOMSubtreeModified", function() {
console.log("keep outputting this message");
});
왜'$ watch''searchvalue'와 컨트롤러의'$ filter'을 고려? –
안녕하세요 @MikkoViitala 답장을 보내 주셔서 감사합니다. –
그랬습니까 $ scope.items = $ filter ('filter') ($ scope.items2, val); –