Search Posts

Category: binding

AngularsJS $document properties

$document has some properties ` If I need to bind $document.onblur=alert(1);, how can I do that? I mean I already bind $document.on(‘keyup’, keyupHandler);. But, as you can see at the picture. onkeyup: null P.S. And there is one more question. I need to make something like that: function keyupHandler(){ angular.element(‘div.keyFriendly[key==’+keyEvent.key +’]’).clicked(); } But angular.element doesn’t work. How can I get it? And how can I bind to all inputs focus and blur from the js […]