import template from "./InputSearch.html";
angular.module("esNgAntd").directive("esInputSearch", function () {
return {
controllerAs: "esInputSearch",
restrict: "E",
transclude: true,
replace: true,
scope: {
value: "@",
placeholder: "@",
onSearch: "&",
},
template: template,
controller: function ($scope, $element) {
this.getContext = function () {
return $scope;
};
$scope.state = {
value: null,
};
$scope.handleChange = function (event) {
$scope.state.value = event.target.value;
};
},
};
});