From 15a6008ab319e1fb0421568842d58c940ef5895c Mon Sep 17 00:00:00 2001 From: Raza Balbale Date: Wed, 11 Sep 2024 06:40:10 -0500 Subject: [PATCH] Updated example. --- example/index.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/example/index.html b/example/index.html index 7457ecd..c092722 100644 --- a/example/index.html +++ b/example/index.html @@ -71,7 +71,7 @@ //If you would like to invoke a function //after Wirup Initializes //replace the above call with this: - //wu.init('yourOwnCustomFunction'); + //wu.init({ 'callbackName':'yourOwnCustomFunction'}); // Also uncomment the below lines. /* @@ -83,6 +83,14 @@ } */ + // For multiple component files, use below pattern. + //wu.init({ + // 'components': [ + // 'components2.js', + // 'components.js' + // ] + //}); + document.getElementById('peopleLink').addEventListener("click", function(){ wu.navigateTo('/'); });