浏览代码

docs: hooks example

Ryan Chandler 4 年之前
父节点
当前提交
72978b2778
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      examples/index.html

+ 8 - 0
examples/index.html

@@ -52,6 +52,14 @@
             Spruce.watch('persisted.example', () => {
                 console.log('World!');
             })
+
+            Spruce.starting(function () {
+                console.log('starting up...')
+            })
+
+            Spruce.started(function () {
+                console.log('started...')
+            })
         </script>
     </body>
 </html>