peerigon / peerigon/angular-expressions
Could not parse DOM element properties
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 100
- Forks
- 24
- Avg merge
- 1h 9m
- Merged PRs (30d)
- 6
Description
In my case, I give a DOM element to scope, and want to parse out the value property, but not work:
const el = document.querySelector('#input')
const ev = expressions.compile('el.value')
console.log(ev({ el }))
I get undefined, could you please to fix this?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the provided document.querySelector and expressions.compile('el.value') example. Trace the expression evaluation entry point to determine why a DOM element's value property returns undefined, then verify that the example evaluates to the element's value without breaking other property access.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100