element.on("click", function(){
element[0].querySelector("input").focus()
element[0].querySelector("input").on('keypress',function(key){
console.log(key)
}
})
This returns this error:
Uncaught TypeError: undefined is not a function
runner:18(anonymous function)
runner:18(anonymous function)
angular.js:2843forEach
angular.js:325eventHandler
And the JSBin
Thanks!