Przeglądaj źródła

docs: hooks example

Ryan Chandler 4 lat temu
rodzic
commit
72978b2778
1 zmienionych plików z 8 dodań i 0 usunięć
  1. 8 0
      examples/index.html

+ 8 - 0
examples/index.html

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