Skip to content

Update expressions doc to clarify what's observed #486

Description

@arthurevans
  • In most cases (verify this) when an identifier is used in an expression, we
    observe the identifier and its direct properties.

For example, in {{ catalog }} we observe catalog and catalog.item but
not catalog.item.title.

  • For object literals, we only observe the top-level identifiers.

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

  • 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).

Activity

  1. arthurevans commented on Apr 29, 2014

    @arthurevans
    Author

    Sorry, opened this on the wrong repo. Moved to:

    Polymer/old-docs-site#392

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions