myApp.directive('input', function () {
return {
restrict: 'E',
//scope: false,
link: function (scope, elem) {
if (scope.lang && elem.attr('type') === 'text') {
elem.attr('lang', 'fa');
console.log(scope.lang);
}
}
};
});
它工作正常,但它不适用于选择的输入搜索?
任何的想法?谢谢