Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Side by Side Diff: polymer_1.0.4/bower_components/firebase-element/demo/x-pretty-json.html

Issue 1205703007: Add polymer 1.0 to npm_modules (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Renamed folder to 1.0.4 Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <link rel="import" href="../../polymer/polymer.html">
2
3 <dom-module id="x-pretty-json">
4 <template>
5 <pre>[[prettify(object)]]</pre>
6 </template>
7 <script>
8 Polymer({
9 is: 'x-pretty-json',
10
11 properties: {
12 object: {
13 type: Object
14 }
15 },
16
17 prettify: function(object) {
18 if (!object) {
19 return '';
20 }
21
22 return JSON.stringify(object, null, ' ');
23 }
24 })
25 </script>
26 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698