Just to clarify, Polymer does not currently observe object or array 
mutations directly as dependencies. However, if a property that is an 
object or array itself changes, this will be noticed. Here is an 
example: http://jsbin.com/qozuc/1/edit.

There is one exception to this which is an array that is repeated. That 
array is observed for array mutations (additions/removals). We're 
investigating generalizing this behavior such mutations to properties of 
objects/arrays can be dependencies.



On Thursday, August 28, 2014 9:26:19 AM UTC-7, Kenny Williams wrote:
>
> Yes I do believe that is the exact issue I am having. However, I am not 
> sure how Polymer changes the data when it is bound to the value of a text 
> box. If it appends the string then this has to be it. If it actually sets 
> the value then it seems Polymer should know about it. 
>
> It is interesting though because I never directly bound the value of the 
> text box to the data. Polymer simply knew that it was in a repeat and where 
> each text box's value should be in relation to the data and wired it all up 
> itself. 
>
> On Thursday, August 28, 2014 8:21:50 AM UTC-7, Steve Orvell wrote:
>>
>> May be related to this 
>> https://github.com/Polymer/polymer-expressions/issues/28 
>> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2FPolymer%2Fpolymer-expressions%2Fissues%2F28&sa=D&sntz=1&usg=AFQjCNGcjn1fCiGY7AJ3a2tth0LtjL9vPg>.
>>  
>> We're looking into it. Feel free to post a specific issue here: 
>> https://github.com/Polymer/polymer-expressions/issues.
>>
>>
>> On Thu, Aug 28, 2014 at 5:44 AM, Silver Techar <[email protected]> 
>> wrote:
>>
>>> Hi,
>>>
>>> I've experienced almost the same problem and I've read somewhere that 
>>> this is not supported with filters and complex objects.
>>>
>>> I'd suggest you do:
>>>
>>> <template repeat="{{data}}">
>>>     <template if="{{data.isNotEmpty}}">
>>>         <div></div>
>>>     </template>
>>> <template>
>>>
>>> Also, you're not allowed to have spaces in {{}}. Try first without.
>>>
>>> Moreover, I think that your template repeat needs to be within another 
>>> template.
>>>
>>> Kr,
>>> Techar
>>>
>>>
>>> On Wednesday, August 27, 2014 9:25:52 PM UTC+2, Kenny Williams wrote:
>>>>
>>>> I have a template repeat, shown below:
>>>> <template repeat="{{ data | removeEmpty}}">
>>>> <div>
>>>>   <paper-input label="{{ [0] }} input description" required 
>>>> floatingLabel></paper-input>
>>>>  </div>
>>>> </template>
>>>>
>>>> This template works fine for when the data is updated through actually 
>>>> setting the data to be a different value so the initial render works fine 
>>>> going through the filter. 
>>>>
>>>> I updated the two-way bound variable data by changing the input of a 
>>>> text box which effectively DOES change the data. Now that the data has 
>>>> been 
>>>> changed, the template should re-render. It does not. 
>>>>
>>>> Now if I take the filter, removeEmpty, off the template will update. Is 
>>>> this a bug in polymer?
>>>>
>>>  Follow Polymer on Google+: plus.google.com/107187849809354688692
>>> --- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Polymer" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected].
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/polymer-dev/5ded785b-0e46-4315-96ca-da395e823f50%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/polymer-dev/5ded785b-0e46-4315-96ca-da395e823f50%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/cd37ebfb-518c-43d1-8237-eb310e9148ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to