javascript - In a Polymer custom element, can properties of items in a collection be observed for changes? -


I have a custom polymer element in which there is an array of items, they provide them in the table form I know That when the asset of an item changes in the array, the performance is not updated.

There is a demonstration of the problem.

I suspect that instead of specifying the actual property name in this template, it may be related to using the repeat loop to render each property, so the path of the property is one Supervisor does not get attached?

I am working on this by empowering and re-parsing the item after one of the changes, then turning it into an array, but it is clearly disabled.

Is there any way to ensure that the polymer updates in a single display, when the property of an object changes in a collection? I believe you are right that only top-level identifiers are celebrated for change, their properties not for. For example, if you have the expression:

  {{article: article, field: field}}   

only changes to article < / Code> and area are detected - changes in their properties, such as article.id are not.

In this case, I was able to replace the expression of my example and work; Filter with:

  {{article [field]}}   

Array is not documented as being supported in access expression, but it is clear There is an inspection in the form. I opened a ticket to update the document:



Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -