mirror of
https://github.com/jlengrand/polymer-array-bubble-up-example.git
synced 2026-03-10 08:41:23 +00:00
Use strings in notifyPath. Add elements to notifications
This commit is contained in:
@@ -26,10 +26,11 @@
|
||||
},
|
||||
|
||||
_changeName: function(){
|
||||
console.log("changing name");
|
||||
this.set('element.person', {"name": "bobby"});
|
||||
this.notifyPath(element);
|
||||
this.notifyPath(element.person);
|
||||
|
||||
this.notifyPath('element');
|
||||
this.notifyPath('element.person');
|
||||
this.notifyPath('elements');
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user