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?

enter image description here


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -