OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 Polymer({ | 5 Polymer({ |
6 is: 'html-echo', | 6 is: 'html-echo', |
7 | 7 |
8 properties: { | 8 properties: {content: {type: String, observer: 'contentChanged_'}}, |
9 content: { | |
10 type: String, | |
11 observer: 'contentChanged_' | |
12 } | |
13 }, | |
14 | 9 |
15 contentChanged_: function(content) { | 10 contentChanged_: function(content) { |
16 this.innerHTML = content; | 11 this.innerHTML = content; |
17 } | 12 } |
18 }); | 13 }); |
OLD | NEW |