Browse Source

docs: hooks example

Ryan Chandler 4 năm trước cách đây
mục cha
commit
72978b2778
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  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>