diff index.html @ 79:0c188ed3bcd8

starting lit upgrade. total mess right now
author drewp@bigasterisk.com
date Wed, 17 Nov 2021 13:01:08 -0800
parents b8e5850acca0
children faf7e432f089
line wrap: on
line diff
--- a/index.html	Tue Feb 11 22:55:24 2020 -0800
+++ b/index.html	Wed Nov 17 13:01:08 2021 -0800
@@ -3,13 +3,31 @@
   <body>
     <h1>streamed-graph demo</h1>
     <script type="module" src="./build/demo.js"></script>
-    <dom-bind>
-      <template>
+    
+    <template>
         <streamed-graph
           url="http://bang:9075/graph/events"
           expanded="true"
         ></streamed-graph>
       </template>
-    </dom-bind>
+    
+
+new style:
+    <div id="demo"></div>
+
+    <script type="module">
+      import { html, render } from 'lit';
+      import '../dist/src/graph-view.js';
+  
+      const title = 'Hello owc World!';
+      render(
+        html`
+          <graph-view .title=${title}>
+            some light-dom
+          </graph-view>
+        `,
+        document.querySelector('#demo')
+      );
+    </script>
   </body>
 </html>