Polymer. Way to dynamically add or remove observer
问题 Is there a way to add or remove observer not in the moment of element initing? I can define observer this way: observers: ['dataChanged(data.*)'] Can i remove this observer later or can I set this observer different way than that? 回答1: You can easily add an observer dynamically, either by: this._addObserverEffect("property", observerFunction); or this._addComplexObserverEffect("dataChanged(data.*)"); Removing is harder and Polymer does not provide a function to do this. Although you could