Sfoglia il codice sorgente

docs: hooks example

Ryan Chandler 4 anni fa
parent
commit
72978b2778
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  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>