-
Notifications
You must be signed in to change notification settings - Fork 23
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
Could not parse DOM element properties #21
Comments
Hello @tangshuang , I don't have the time to put active work like this on the project because of other priorities. |
@tangshuang your code is wrong, you need to use the value of the element for the expression, not the string "el.value". That is:
This assuming of course the expression is in the input. EDIT: I understand now that what you want is to evaluate an expression using the element value. If it doesn't work it's probably because it's not enumerable (own property) or something similar. We've noticed many "standard things" do not work as expected inside the angular parser. |
@cdelaorden you are right, I modified the code, see here https://github.com/tangshuang/scopex/blob/master/index.js (may face secure problem, not sure) |
In my case, I give a DOM element to scope, and want to parse out the value property, but not work:
I get undefined, could you please to fix this?
The text was updated successfully, but these errors were encountered: