angularjs - ng-keypress inside popup.html (chrome extension) not working -
i trying use angular.js build chrome extension. in popup.html (for default popup), have input element want angular handle keypress event for, ng-keypress isn't working , not sure if missing or need workaround.
i have following code in popup.html:
<html ng-app="chrome-ext" ng-csp> <body ng-controller="popupcontroller"> <input type="text" class="form-control" placeholder="enter name" ng-model="vm.name" ng-keypress="vm.findname($event)" />
Comments
Post a Comment