rev087/ng-inspector
在 GitHub 查看Replacing scope object with primitive does not update correctly
Open
#138 建立於 2015年9月23日
bughelp wanted
描述
(Here's a minimal example Plunkr.)
When a scope object is replaced with another object, the inspector version is replaced immediately and correctly. However, when an object is replaced with a primitive, some components still reference the old object:
- If the property drop-down is open, the only visible change is the type icon. Otherwise in all ways, the inspector shows the old object.

- If the property drop-down is closed, the primitive value is shown, however the property count is still visible, and the drop-down can be opened, leading to the above case.
- In both situations, clicking the name or value will print the old object to the console.