You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Aug 09 2019 23:09:15 GMT-0400 (Eastern Daylight Time) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
133
+
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Sun Aug 11 2019 11:47:39 GMT-0400 (Eastern Daylight Time) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
<li><ahref="#passing-props-to-route-components">Passing Props to Route Components</a><ul>
84
85
<li><ahref="#automatically-pass-route-params-as-component-props">Automatically Pass Route Params as Component Props</a></li>
85
86
<li><ahref="#pass-custom-object-as-component-props">Pass Custom Object as Component Props</a></li>
@@ -173,6 +174,7 @@ <h2>Installation via NPM or Yarn</h2><pre class="prettyprint source lang-sh"><co
173
174
}
174
175
]
175
176
}</code></pre><h2>Boilerplate Project Template</h2><p>For a quick start, you can use <ahref="https://github.com/spaceavocado/svelte-router-template">svelte-router-template</a> - Boilerplate template project for spaceavocado/svelte-router.</p>
<h2>Essentials</h2><p>Note: All code below uses ES2015+.</p>
177
179
<h3>Setup the Router</h3><p>All we need to do is map our components to the routes and add root RouterView component, here's a basic example of app component uses as the main <ahref="#https://svelte.dev">Svelte</a> component.</p>
178
180
<p>index.js:</p>
@@ -225,6 +227,11 @@ <h3>Route Configuration</h3><p>A route can be configure with these properties:</
225
227
<tdstyle="text-align:left">string</td>
226
228
</tr>
227
229
<tr>
230
+
<tdstyle="text-align:left">redirect</td>
231
+
<tdstyle="text-align:left">Redirection to different route, or to external site. Please see <ahref="#route-redirection">Route Redirection</a> for advanced usage.</td>
@@ -400,6 +442,11 @@ <h3>Router Link Component</h3><pre class="prettyprint source lang-html"><code>&l
400
442
<tdstyle="text-align:left">boolean</td>
401
443
</tr>
402
444
<tr>
445
+
<tdstyle="text-align:left">exact</td>
446
+
<tdstyle="text-align:left">The default active class matching behavior is inclusive match, i.e. it matches if the URL starts with link url. In the exact mode, the url must be be the same (excluding query param and hash param). Defaults to false.</td>
447
+
<tdstyle="text-align:left">boolean</td>
448
+
</tr>
449
+
<tr>
403
450
<tdstyle="text-align:left">cls</td>
404
451
<tdstyle="text-align:left">Link base class name, defaults to ''.</td>
<h2>License</h2><p>Svelte Router is released under the MIT license. See <ahref="https://github.com/spaceavocado/svelte-router/blob/master/LICENSE.txt">LICENSE.txt</a></p></article>
929
+
<h2>License</h2><p>Svelte Router is released under the MIT license. See <ahref="https://github.com/spaceavocado/svelte-router/blob/master/LICENSE.txt">LICENSE.txt</a>.</p></article>
883
930
</section>
884
931
885
932
@@ -894,7 +941,7 @@ <h2>License</h2><p>Svelte Router is released under the MIT license. See <a href=
894
941
<brclass="clear">
895
942
896
943
<footer>
897
-
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Aug 09 2019 23:09:15 GMT-0400 (Eastern Daylight Time) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
944
+
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Sun Aug 11 2019 11:47:40 GMT-0400 (Eastern Daylight Time) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
0 commit comments