You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.
I decided to store an object that is common to some of my masked fields on a module.
Module gets imported to the controller module and the object is assigned onto the controller.
Then the object is passed to ui-options via template expression.
It happened that I defined the original module using Object.freeze. I got an error saying that It's not possible to extend the object. It seems like when expression in ui-options attribute gets evaluated defaults are assigned onto it. Correct behaviour would be to assign first defaults, then local overrides onto a fresh object each time.
The text was updated successfully, but these errors were encountered:
jrencz
changed the title
Object given as ui-options shouldn't get assigned
Object given as ui-options shouldn't get assigned to
Aug 7, 2017
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I decided to store an object that is common to some of my masked fields on a module.
Module gets imported to the controller module and the object is assigned onto the controller.
Then the object is passed to ui-options via template expression.
It happened that I defined the original module using
Object.freeze
. I got an error saying that It's not possible to extend the object. It seems like when expression inui-options
attribute gets evaluated defaults are assigned onto it. Correct behaviour would be to assign first defaults, then local overrides onto a fresh object each time.The text was updated successfully, but these errors were encountered: