Skip to content
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

Passing $parent to value converter and adding a binding behavior offends the parser. #608

Closed
CuddleBunny opened this issue Jul 18, 2017 · 0 comments · Fixed by #689
Closed
Assignees
Labels

Comments

@CuddleBunny
Copy link

CuddleBunny commented Jul 18, 2017

I'm submitting a bug report

  • Library Version:
    1.2.0

Please tell us about your environment:

  • Operating System:
    Windows 10

  • Node Version:
    8.1.0

  • NPM Version:
    5.0.3
  • JSPM OR Webpack AND Version
    JSPM 0.16.53
  • Browser:
    all
  • Language:
    all

Current behavior:
When passing $parent to a value converter and then using a binding behavior I get an Error: Unexpected character &.

Sample:
https://gist.run/?id=4e78f4b92109035f346caf2ca6153408

Strangely enough, if I wrap it in object notation like so: { vm: $parent } and pass that, it works just fine. This only seems to affect $parent and not $this. I've not tested any of the other contextual properties.

Expected/desired behavior:

  • What is the expected behavior?
    Expression will parse without error, and behave like the workaround.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants