Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Update expressions doc to clarify what's observed #392

Closed
arthurevans opened this issue Apr 29, 2014 · 2 comments
Closed

Update expressions doc to clarify what's observed #392

arthurevans opened this issue Apr 29, 2014 · 2 comments
Assignees

Comments

@arthurevans
Copy link

We observe only the top-level identifier, not its properties.

For example, in: {{ { thing1: foo, thing2: bar } }} we observe foo and bar but not the properties of foo and bar.

This may lead to unexpected behavior when using a filter like tokenList, which acts on the object's (unobserved) properties.

  • Also we need to add array access to the list of allowable syntax in expression.

For example: thing[field]. In this case, we observe... (fill in the blank).

@ebidel
Copy link
Contributor

ebidel commented Apr 29, 2014

Do we mention paths are observable if you explicitly watch them in the
observe block?
On Apr 29, 2014 2:26 PM, "Arthur Evans" [email protected] wrote:

We observe only the top-level identifier, not its properties.

For example, in: {{ { thing1: foo, thing2: bar } }} we observe foo and barbut not the properties of
foo and bar.

This may lead to unexpected behavior when using a filter like tokenList,
which acts on the object's (unobserved) properties.

Also we need to add array access to the list of allowable syntax in
expression.

For example: thing[field]. In this case, we observe... (fill in the
blank).


Reply to this email directly or view it on GitHubhttps://github.com//issues/392
.

@arthurevans arthurevans self-assigned this Jun 4, 2014
@arthurevans
Copy link
Author

Should have closed this when #431 was merged.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants