清空数组并通过数据绑定传播更改?

Empty an array and propogate change through data binding?

这是一个近乎尴尬的"easy"问题,但我找不到答案。 :/

Polymer 1.0 中,如何清除数组并确保更改传播到 UI?

我知道 pushpopspliceshiftunshift Polymer-documentation 中提到的。它们应该像这样使用:this.push("myArray", {})。但是如何有效地清除数组呢?遍历数组并调用 pop() 将触发每个不理想的项目的事件。

谢谢!

这曾经对我有用:

this.splice('myarray', 0, this.myarray.length);

bin: http://jsbin.com/rucejo/4/edit?html,output