Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Display object properties with '$' as first character #6520

@whitews

Description

@whitews

Object properties beginning with a '$' character are not displayed in templates using the ng-repeat directive. A small example exhibiting the problem:

  <p data-ng-repeat="(key, value) in {'$no': 'rock', 'yes': 'hard place'}">
      {{ key }}: {{ value }}
  </p>

Oddly, you can display these properties explicitly:

{{ my_object.$no }}

As far as I know, these are valid JS property names, so I'm not sure why these would not be allowed, especially considering the inconsistent behaviour of explicitly referencing these properties.

This was also posted on StackOverflow:
http://stackoverflow.com/questions/22134008/angularjs-display-properties-with-as-first-character

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions