-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there anyway to call the var resultDiv in ng-model? #29
Comments
Can you please tell me which demo you are talking about? |
Hi cfjedimaster, Thanks in advance .... |
If Angular 1, just use a $scope variable. You would store 's' to it. |
That Means i have to write $scope.s = result.text; so that it will store the result.text value in s and i call the value of variable 's' in my form like: It will filled in the input field automatically ? |
Um, not quite sure I get your reply, but sure. :) You are now asking a basic AngularJS question - nothing specific to my code or Cordova. |
yes sir... I figured it out .... Thanks for your help :) |
var resultDiv;
document.addEventListener("deviceready", init, false);
function init() {
document.querySelector("#startScan").addEventListener("touchend", startScan, false);
resultDiv = document.querySelector("[ng-model='user.result']");
}
function startScan() {
The text was updated successfully, but these errors were encountered: