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

ng-bind-html is not watching bound value correctly #864

Closed
petebacondarwin opened this issue Apr 8, 2012 · 1 comment
Closed

ng-bind-html is not watching bound value correctly #864

petebacondarwin opened this issue Apr 8, 2012 · 1 comment
Assignees

Comments

@petebacondarwin
Copy link
Contributor

If a the ng-bind-html value is bound to {{a.b}} and then b is deleted from a (either by the delete operator or by changing a) then the binding does not update correctly: http://jsfiddle.net/qYpcA/5/

From looking at the code the ng-bind-html is the only one that does not wrap the link function in a call to ngDirective.

@ghost ghost assigned IgorMinar Apr 8, 2012
@IgorMinar
Copy link
Contributor

we don't use ngDirective there because we need to inject $sanitize service. the real problem was that we called html(content) if the content was truthy, which was a bug.

IgorMinar added a commit to IgorMinar/angular.js that referenced this issue Apr 9, 2012
IgorMinar added a commit to IgorMinar/angular.js that referenced this issue Apr 9, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants