From 45921b0db7061aa0a84fd8b0bb60c3f2af8d4c56 Mon Sep 17 00:00:00 2001 From: Viktor Lukashov Date: Wed, 8 Jan 2020 14:45:04 +0200 Subject: [PATCH] fix: add a mass-ignore example to the docs Follow-up on #421, related to #325 fix linter issue --- demo/vaadin-router-demo-shared-styles.html | 10 +++++ demo/vaadin-router-getting-started-demos.html | 40 +++++++++++++++++-- 2 files changed, 47 insertions(+), 3 deletions(-) diff --git a/demo/vaadin-router-demo-shared-styles.html b/demo/vaadin-router-demo-shared-styles.html index 9d651c40..ece6b07f 100644 --- a/demo/vaadin-router-demo-shared-styles.html +++ b/demo/vaadin-router-demo-shared-styles.html @@ -37,3 +37,13 @@ + + + + diff --git a/demo/vaadin-router-getting-started-demos.html b/demo/vaadin-router-getting-started-demos.html index 3580fc44..b3cde549 100644 --- a/demo/vaadin-router-getting-started-demos.html +++ b/demo/vaadin-router-getting-started-demos.html @@ -247,14 +247,16 @@

Base URL

Excluded links

-

Vaadin Router can ignore a link if router-ignore - parameter is added to the a tag. +

When some <a> links are external for the app, Vaadin + Router can be configured to ignore them and let the browser handle these + links in the default way: +

<a href="/users" router-ignore>Users</a>

+ +

When an large set of URLs needs to be ignored (e.g. all URLs starting + with /external), it may be impractical to add the + router-ignore attribute to each link separately. + For such cases a more practical approach would be to add a special route + to the top of the router config: +

+ + +