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

new lazy one-time binding fails with NULL values #7743

Closed
ahoereth opened this issue Jun 8, 2014 · 1 comment
Closed

new lazy one-time binding fails with NULL values #7743

ahoereth opened this issue Jun 8, 2014 · 1 comment

Comments

@ahoereth
Copy link

ahoereth commented Jun 8, 2014

Error occurs when the variable bind using {{::variable}} (or using ngBind etc}} is null.

See the minimal example at: plunkr

Error (1.3.0-beta.11): TypeError: Cannot read property '$$unwrapTrustedValue' of null
Faulty line of code: ng/parse.js#L1074

Besides angular throwing this error everything works fine.

@rodyhaddad
Copy link
Contributor

Good catch!
This would get fixed with the bind-once rewrite in #7700.
If it doesn't get merged before the next release, I'll fix your issue in the current implementation.

lgalfaso added a commit to lgalfaso/angular.js that referenced this issue Jun 11, 2014
Handles when a one-time binding stabilizes to `null`

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

Successfully merging a pull request may close this issue.

2 participants