From: Eduardo San Martin Morote Date: Wed, 20 Apr 2022 13:51:50 +0000 (+0200) Subject: docs: add example about props X-Git-Tag: v4.0.15~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ad486473eb7f5bbcdbc721b13b1373bc3a8f6df;p=thirdparty%2Fvuejs%2Frouter.git docs: add example about props Close #1375 Close #1361 --- diff --git a/docs/api/index.md b/docs/api/index.md index 29b3a19d..38e94a66 100644 --- a/docs/api/index.md +++ b/docs/api/index.md @@ -188,6 +188,14 @@ If you add a `target="_blank"` to your `a` element, you must omit the `@click="n - `Component`: VNodes to be passed to a ``'s `is` prop. - `route`: resolved normalized [route location](#routelocationnormalized). +Note you should be passing View components' props directly to the `` rather than the ``: + +```html + + + +``` + ## createRouter Creates a Router instance that can be used by a Vue app. Check the [`RouterOptions`](#routeroptions) for a list of all the properties that can be passed.