Polymer update object outside of component and reflect changes to UI -


is possible reflect changes polymer component property without update value via .set(path, value).

for example have object overrided setter based on value apply new value other field.

polymer({         is: 'x-element',         properties: {             form: {type: object,             value: {                      set name(v) {                              this._name = v;                              this.additional = v; // change different property                      },                      name() {                              return this.name;                      },                       set additional(v) {                              // process v                              this._additional = v; // field not reflect                       },                      additional() {                              return this._additional;                      }            },          reflecttoattribute: true          }                        }) 


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -