angularjs - Directive not working on chosen directive -
i wrote simple directive :
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); } } }; });
it's working fine, it's not working on chosen input search ?
idea?
Comments
Post a Comment