Explorar o código

docs: hooks example

Ryan Chandler %!s(int64=4) %!d(string=hai) anos
pai
achega
72978b2778
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  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>